Making R installation self-contained/user-independent

后端 未结 4 2028
野趣味
野趣味 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

    adding this does the trick:

    .Library.site = file.path( R.home() , ".." , "site-library" )
    .libPaths(.Library.site)
    

提交回复
热议问题