To change R_LIBS
export R_LIBS=/somefolder/To check whether the variable was changed
echo $R_LIBSRestart R to ensure that the packages in the alternative location are read. Packages installed in this fashion must be the Windows binary version of the package and must be unzipped into the directory. The library() command is used in the normal fashion.
library(somepackage)This will only work for the current Linux session. To make the change permanent the export R_LIBS command can be placed in .bash_profile.
No comments:
Post a Comment