[R-sig-Geo] How to install R packages

philipova at imbm.bas.bg philipova at imbm.bas.bg
Thu Mar 9 15:12:18 CET 2017


Dear R-users,
Please tell me how to install R packages. I have downloaded source files
of some packages (*.tar files). I put them in a directory in my computer.
The computer asked me whether to make personal library.
I tried with:
install.packages(pkgs='pastecs', lib='C;/User/doktorant-220/My
Documents/R/win-library/3.3/pastecs_1.3-18.tar',repos=NULL,type="source")

R gives me the following message:
Warning in install.packages(pkgs = "pastecs", lib =
"C:/User/doktorant-220/My Documents/R/win-library/3.3/pastecs_1.3-18.tar",
 :
  'lib = "C:/User/doktorant-220/My
Documents/R/win-library/3.3/pastecs_1.3-18.tar"' is not writable
Warning: invalid package 'pastecs'
Error: ERROR: no packages specified
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/i386/R" CMD INSTALL -l
"C:\Users\doktorant-220\Documents\R\win-library\3.3" "pastecs"' had status
1
2: In install.packages(pkgs = "pastecs", lib = "C:/User/doktorant-220/My
Documents/R/win-library/3.3/pastecs_1.3-18.tar",  :
  installation of package ‘pastecs’ had non-zero exit statu

I will be grateful for your help!
Nina



More information about the R-sig-Geo mailing list