Displaying 20 results from an estimated 30000 matches similar to: "An alternative algorithm for `which()`"
2020 Apr 17
3
Demo for linking native routines between R packages
Dear Davis,
Thank you a lot for sharing this, and I am happy that I was not the only
one who need to do it once to learn:)
I proposed to add my repo to the manual. I think it makes sense to add both
of ours, if possible, or we could merge them together and add that to the
manual.
Long-term URL stability is apparently an issue, but I think we may find a
solution there.
Anyway, thanks a lot for
2020 May 21
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
>>>>> Herv? Pag?s
>>>>> on Fri, 15 May 2020 13:44:28 -0700 writes:
> There is still the situation where **both** 'sep' and 'collapse' are
> specified:
>> paste(integer(0), "nth", sep="", collapse=",")
> [1] "nth"
> In that case 'recycle0' should **not** be
2024 Mar 22
1
`as.data.frame.matrix()` can produce a data frame without a `names` attribute
>>>>> Davis Vaughan via R-devel
>>>>> on Thu, 21 Mar 2024 15:10:29 -0400 writes:
> Hi all,
> I recently learned that it is possible for
> `as.data.frame.matrix()` to produce a data frame with 0
> columns that is also entirely missing a `names` attribute,
> and I think this is a bug:
> ``` # No `names`, weird!
>
2020 May 22
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
I think that
paste(c("a", "b"), NULL, c("c", "d"), sep = " ", collapse = ",",
recycle0=TRUE)
should just return an empty string and don't see why it needs to emit a
warning or raise an error. To me it does exactly what the user is asking
for, which is to change how the 3 arguments are recycled **before** the
'sep'
2020 May 22
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
I understand that this is consistent but it also strikes me as an enormous
'gotcha' of a magnitude that 'we' are trying to avoid/smooth over at this
point in user-facing R space.
For the record I'm not suggesting it should return something other than "",
and in particular I'm not arguing that any call to paste *that does not
return an error* with non-NULL
2023 Apr 28
1
range() for Date and POSIXct could respect `finite = TRUE`
A tiny nit-pick: Seems to me that end date = NA would mean the event has
not yet ended, whilst Inf would mean that the event is known to never
terminate, ie: an eternal fact, or physical law.
On Fri, Apr 28, 2023 at 10:12?AM Davis Vaughan via R-devel <
r-devel at r-project.org> wrote:
> Hi all,
>
> I noticed that `range.default()` has a nice `finite = TRUE` argument,
> but it
2023 May 19
1
range() for Date and POSIXct could respect `finite = TRUE`
Hi All,
I think there may be some possible confusion about what allowsInf would be
reporting (or maybe its just me :) ) if we did this.
Consider a class "myclass", S3, for starters,
with
setMethod("allowsInf", "myclass", function(obj) FALSE)
Then, what would
myclassthing <- structure(1.5, class = "mything")
myclassthing[1] <- Inf
do. Assumely it
2017 Mar 30
0
JPG issue
You have the setting on to HIDE files that can't be written to. Try turning
that off. Next, investigate why it's causing the files to get 540
permissions instead of 740 (or other).
On Thu, Mar 30, 2017 at 11:18 AM, Curtis Vaughan via samba <
samba at lists.samba.org> wrote:
> Ok, it's taken me a while, but here's what seems to be the problem. In OSX
> I see a lock on
2020 May 24
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
Herve (et al.),
On Fri, May 22, 2020 at 3:16 PM Herv? Pag?s <hpages at fredhutch.org> wrote:
> Gabe,
>
> It's the current behavior of paste() that is a major source of bugs:
>
> ## Add "rs" prefix to SNP ids and collapse them in a
> ## comma-separated string.
> collapse_snp_ids <- function(snp_ids)
> paste("rs", snp_ids,
2017 Mar 30
2
JPG issue
Ok, it's taken me a while, but here's what seems to be the problem. In OSX
I see a lock on the file. If that lock is ON, it disappears. But what is
that lock and where did it come from.... Is it like a read only lock?
On Thu, Mar 30, 2017 at 11:04 AM Curtis Vaughan <cavaughan at gmail.com> wrote:
> Ok, here's what seems to be going on. When a JPG is put into a share it
>
2024 Mar 21
1
`as.data.frame.matrix()` can produce a data frame without a `names` attribute
Hi all,
I recently learned that it is possible for `as.data.frame.matrix()` to
produce a data frame with 0 columns that is also entirely missing a
`names` attribute, and I think this is a bug:
```
# No `names`, weird!
attributes(as.data.frame(matrix(nrow = 0, ncol = 0)))
#> $class
#> [1] "data.frame"
#>
#> $row.names
#> integer(0)
# This is what I expected
2020 May 22
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
Hi Martin et al,
On Thu, May 21, 2020 at 9:42 AM Martin Maechler <maechler at stat.math.ethz.ch>
wrote:
> >>>>> Herv? Pag?s
> >>>>> on Fri, 15 May 2020 13:44:28 -0700 writes:
>
> > There is still the situation where **both** 'sep' and 'collapse' are
> > specified:
>
> >> paste(integer(0),
2017 Mar 30
0
JPG issue
Ok, here's what seems to be going on. When a JPG is put into a share it
inherits permissions of 540. When I chmod it to 740 it appears in file
browsers. So the file is actually there, but invisible. But I've tried
other files and everything else copies over with 740. Again, why?
On Thu, Mar 30, 2017 at 10:56 AM Curtis Vaughan <cavaughan at gmail.com> wrote:
> [global]
>
>
2023 Feb 13
1
idmap ad question
On 13/02/2023 16:50, Vaughan, Robert J via samba wrote:
> On 12/02/2023 16:40, Vaughan, Robert J via samba wrote:
>> Hi all
>>
>> In the idmap_config_ad wiki, it states ..
>>
>> If you use the winbind 'ad' backend, you must add a gidNumber attribute to the Domain Users group in AD.
>>
>> Can someone explain this?
>>
>
>>> Yes
2002 Aug 26
2
Homedrive mapping
Hello everyone,
We are making extensive use of the homedrive mapping fields in AD.
(automagically mapping a drive letter to a UNC path without a logon script)
Since we sp2 applied to our clients, none of them have been able to map
their home drives to our samba servers.
According to Microsoft's q-article,
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q308580&, "this
2023 Apr 28
2
range() for Date and POSIXct could respect `finite = TRUE`
Hi all,
I noticed that `range.default()` has a nice `finite = TRUE` argument,
but it doesn't actually apply to Date or POSIXct due to how
`is.numeric()` works.
```
x <- .Date(c(0, Inf, 1, 2, Inf))
x
#> [1] "1970-01-01" "Inf" "1970-01-02" "1970-01-03" "Inf"
# Darn!
range(x, finite = TRUE)
#> [1] "1970-01-01"
2013 Aug 16
1
[PATCH] xen: initialize xen panic handler for PVHVM
kernel use callback linked in panic_notifier_list to notice others when panic
happens.
NORET_TYPE void panic(const char * fmt, ...){
...
atomic_notifier_call_chain(&panic_notifier_list, 0, buf);
}
When xen aware this, it will call xen_reboot(SHUTDOWN_crash) to send out an
event with reason code - SHUTDOWN_crash.
xen_panic_handler_init() is defined to register on panic_notifier_list but
2013 Aug 16
1
[PATCH] xen: initialize xen panic handler for PVHVM
kernel use callback linked in panic_notifier_list to notice others when panic
happens.
NORET_TYPE void panic(const char * fmt, ...){
...
atomic_notifier_call_chain(&panic_notifier_list, 0, buf);
}
When xen aware this, it will call xen_reboot(SHUTDOWN_crash) to send out an
event with reason code - SHUTDOWN_crash.
xen_panic_handler_init() is defined to register on panic_notifier_list but
2013 Aug 16
1
[PATCH] xen: initialize xen panic handler for PVHVM
kernel use callback linked in panic_notifier_list to notice others when panic
happens.
NORET_TYPE void panic(const char * fmt, ...){
...
atomic_notifier_call_chain(&panic_notifier_list, 0, buf);
}
When xen aware this, it will call xen_reboot(SHUTDOWN_crash) to send out an
event with reason code - SHUTDOWN_crash.
xen_panic_handler_init() is defined to register on panic_notifier_list but
2023 Feb 13
1
idmap ad question
On 12/02/2023 16:40, Vaughan, Robert J via samba wrote:
> Hi all
>
> In the idmap_config_ad wiki, it states ..
>
> If you use the winbind 'ad' backend, you must add a gidNumber attribute to the Domain Users group in AD.
>
> Can someone explain this?
>
>>Yes
>>Every users primaryGroupID attribute is set to 513, the RID for Domain
>>Users.