Re: [Rd] mget(missingArgument)?

2020-06-22 Thread Gabriel Becker
At first I thought this was more or less correct, because > f = function(x) { y <- mget("x")[[1]]; missing(y)} > f() [1] TRUE reflects the actual "value" of x, but then at the very least this > f = function(x) { y <- mget("x")[[1]]; y} > f() *Error in f() : argument "y" is missing, with no

[Rd] mget(missingArgument)?

2020-06-22 Thread William Dunlap via R-devel
Currently, when mget() is used to get the value of a function's argument with no default value and no value in the call it returns the empty name (R_MissingArg). Is that the right thing to do or should it return 'ifnotfound' or give an error? E.g., > a <- (function(x) { y <- "y from function's en

Re: [Rd] Possible Bug: file.exists() Function. Due to UTF-8 Encoding differences on Windows between R 4.0.1 and R 3.6.3?

2020-06-22 Thread Tomas Kalibera
Hi Yihui, list.files() returns file names converted to native encoding by Windows, so one needs to use only characters representable in current native encoding for file names. If one wants to be safe, it makes sense to be much stricter than that (only ASCII, and only a subset of it, there is a

[Rd] R 4.0.2 is released

2020-06-22 Thread Peter Dalgaard via R-devel
The build system rolled up R-4.0.2.tar.gz (codename "Taking Off Again") this morning. The list below details the changes in this release. You can get the source code from http://cran.r-project.org/src/base/R-4/R-4.0.2.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries