Skip to content
Prev 58338 / 63424 Next

stringsAsFactors

Further, in addition to the `val <- FALSE` patch a few hours ago by
Martin, the line after should also be changed

- if(!is.logical(val) || is.na(val) || length(val) != 1L)
+ if(!is.logical(val) || length(val) != 1L || is.na(val))

## Consider
Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = "TRUE")
options(stringsAsFactors = c(TRUE, FALSE))
default.stringsAsFactors()  # correct error message

On Mon, 13 Apr 2020 at 18:02, Martin Maechler
<maechler at stat.math.ethz.ch> wrote: