[R] Strange behaviour of R?
Martin Maechler
m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Fri Jan 17 09:49:29 CET 2020
>>>>> Sigbert Klinke
>>>>> on Fri, 17 Jan 2020 09:21:59 +0100 writes:
> Hi,
> Am 17.01.20 um 08:42 schrieb Rainer M Krug:
>> Not for me - macOS, R 3.6.2
> Sorry, I forgot to add: Ubuntu 18.04.3 LTS, R 3.6.2
Sorry but that's very hard to believe, i.e.,
that such fundamental R behavior would depend on the exact OS
version ... unless you did compile (and link) R yourself *and*
are using somewhat peculiar compiler / linker / ... settings ?
Context :
> I wrote a function like
> test <- function(FUN, args) {
> print(FUN)
> FUN(args)
> }
> When I call it lieke this
> test(mean, 1:10)
> test(NULL, 1:10)
> then the second call still uses mean, although I set FUN to NULL. Is
> that ok?
definitely not ok, and also not reproducible for me.
More information about the R-help
mailing list