2012-11-30 20 views
0

我的问题是,我在R终端中安装的包路径与我在R-studio中安装的位置不同。所以我想改变安装位置。我怎样才能做到这一点 ?感谢如何设置已安装R包的库位置

+1

您可能想查看http://stackoverflow.com/questions/2615128/where-does-r-store-packages –

回答

0

R端子:

可以传递lib参数install.packages其指定库的位置。 见?install.packages

lib: character vector giving the library directories where to 
     install the packages. Recycled as needed. If missing, 
     defaults to the first element of ‘.libPaths()’. 

Rstudio:

如果你去工具 - >安装软件包,您可以指定要在对话框中安装软件包。