Skip to content
Prev 58202 / 63424 Next

R CMD check --as-cran attempts to hide R_LIBS_USER but fails

This has been fixed in R-devel:

r78046 | ripley | 2020-03-24 06:51:35 -0700 (Tue, 24 Mar 2020) | 1 line

handle Renviron files in the same way as POSIX shells

(diff: https://github.com/wch/r-source/commit/1658c8491e9cdc6d2fe61603ed23ae56232b6727)

I've verified that 'R CMD check --as-cran' now hides user's personal
library (R_LIBS_USER) such that the check environment, including test
scripts won't pick up packages from there, e.g. test scripts now
report:
[1] "/tmp/hb/Rtmpy6mBCg/RLIBS_1e6465250309"
[2] "/home/hb/software/R-devel/trunk/lib/R/library"

This is important, because, previously, your package might have not
have produced check errors even if all dependencies had not been
declared in your DESCRIPTION file, or in your package dependencies.

The above is only new for '--as-cran' on Linux and macOS - it already
worked as wanted on Windows (see, there's some advantages to be on
that OS).

/Henrik



On Wed, Mar 18, 2020 at 9:38 PM Henrik Bengtsson
<henrik.bengtsson at gmail.com> wrote: