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

后端 未结 15 2678
青春惊慌失措
青春惊慌失措 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:12

    On Ubuntu, the recommended way of changing the default library path for a user, is to set the R_LIBS_USER variable in the ~/.Renviron file.

    touch ~/.Renviron
    echo "R_LIBS_USER=/custom/path/in/absolute/form" >> ~/.Renviron
    

提交回复
热议问题