Making R installation self-contained/user-independent

后端 未结 4 2056
野趣味
野趣味 2021-01-03 17:14

I\'m trying to get R to ignore c:\\users\\name\\documents and be completely self-contained/portable

Here\'s my directory structure:

.../R/R-2.1.2.2/.         


        
4条回答
  •  天命终不由人
    2021-01-03 17:52

    I used the Rprofile.site file in [your R installation path]\etc and added the following lines to make C:/R/library my default library location each time R is launched:

    # set a site library
     .Library.site <- file.path("C:/R/library")
     .libPaths(.Library.site)
    

    I tried the other answers here but none of them worked with R 2.13.1 on Windows 7 64.

提交回复
热议问题