2012-11-30 55 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:

如果你去工具 - >安裝軟件包,您可以指定要在對話框中安裝軟件包。