slurmR icon indicating copy to clipboard operation
slurmR copied to clipboard

Incompatible with `renv` projects

Open mjz1 opened this issue 1 year ago • 1 comments

libPaths are not properly parsed into the rscript's library calls when using an renv project.

The function list_loaded_pkgs attempts to parse package directory information passed from sessionInfo(), which for renv projects using a cache is the base directory of the cache (which does not have a library tree structure), rather than the project specific renv libPath (which is a library tree with symlinks to the cached packages).

Is there a particular reason why the libPaths variable is not respected when loading packages from the parent environment?

I have forked the repo and made a change here to ensure that the library calls always respect the specified libPaths variable. Is there a situation where this is not desirable?

mjz1 avatar Feb 20 '24 21:02 mjz1