使用Rprofile.site中的.libXPath更改R默认库路径失败
> install.packages("zoo")Installing package(s) into ‘C:/Program Files/R/R-2.15.2/library’(as ‘lib’ is unspecified) Warning in install.packages : 'lib = "C:/Program Files/R/R-2.15.2/library"' is not writable
install.packages("zoo", lib="C:/software/Rpackages")
library("zoo", lib.loc="C:/software/Rpackages")
C:/software/Rpackages
Rprofile.site
.libPaths("C:/software/Rpackages")
> .libPaths()[1] "C:/Program Files/R/R-2.15.2/library" "C:/Program Files/RStudio/R/library"
.libPaths
Rprofile.site
.libPaths()
.libPaths("C:/software/Rpackages")> .libPaths()[1] "C:/software/Rpackages" "C:/Program Files/R/R-2.15.2/library"
HUX布斯