Skip to content

Commit

Permalink
Fix library path
Browse files Browse the repository at this point in the history
We need to set `R_ENVIRON_USER` to an existing file,
otherwise R does not use it. We also need to set R_LIBS
to empty, because otherwise R will pick it up.

Closes #160.

Note that this is also fixed in callr, once
r-lib/callr#84 is merged.
The callr fix is not needed for this revdepcheck fix.
  • Loading branch information
gaborcsardi committed Oct 24, 2018
1 parent 1a43564 commit 2187c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/check.R
Expand Up @@ -68,7 +68,8 @@ check_task <- function(state, task) {

check_env_vars <- function(check_version = FALSE, force_suggests = FALSE) {
c(
"R_ENVIRON_USER" = tempfile(),
"R_ENVIRON_USER" = tempdir(),
"R_LIBS" = "",
# Switch off expensive check for package version
# https://github.com/hadley/devtools/issues/1271
if (getRversion() >= "3.4.0" && as.numeric(R.version[["svn rev"]]) >= 70944) {
Expand Down

0 comments on commit 2187c16

Please sign in to comment.