Change R default library path using .libPaths in Rprofile.site fails to work

后端 未结 15 2879
青春惊慌失措
青春惊慌失措 2020-11-22 06:27

I am running R on Windows, not as an administrator. When I install a package, the following command doesn\'t work:

> install.packages(\"zoo\")
Installing          


        
15条回答
  •  不要未来只要你来
    2020-11-22 07:15

    If you do not have admin-rights, it can also be helpful to open the Rprofile.site-file located in \R-3.1.0\etc and add:

    .First <- function(){
      .libPaths("your path here")
    }
    

    This evaluates the .libPath() command directly at start

提交回复
热议问题