>>>>> 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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.