Closed HenrikBengtsson closed 5 years ago
Now checking:
encoding
stringsAsFactors
with warnings such as:
startup::check(): R option 'encoding' was changed (to 'UTF-8') during startup, cf. Startup. Values other than the default 'native.enc' is known to cause problems. For example, in non-interactive sessions installation of packages with non-ASCII characters (also in source code comments) fails. To set the encoding only in interactive mode, e.g. if (base::interactive()) options(encoding = "UTF-8"). To disable this check, add "encoding" to option 'startup.check.options.ignore'.
startup::check(): R option 'stringsAsFactors' was changed (to 'FALSE') during startup, cf. Startup. Values other than the default 'TRUE' is known to cause problems. To disable this check, add "stringsAsFactors" to option 'startup.check.options.ignore'.
For example, although convenient, setting
options(stringsAsFactors = FALSE)
is likely to cause complicated troubleshooting when running code on another system. It could also break code that assumes the default is TRUE.