I've no idea about the cause of the error, but in terms of debugging, I would go down the following route:
Run
.libPaths()
to see the different directories that R looks at.
Then I would gradually build the number of directories checked up by using the R_LIBS
environment variable in the .Renviron
file. For example,
- Set
R_LIBS=FIRST_DIR_LIBPATHS
- Set
R_LIBS=FIRST_DIR_LIBPATHS,SECOND_DIR