i tried build r package hyperspec using windows vista. when so, following error message:
warning in file.copy(pkgname, tdir, recursive = true) problem copying .\hyperspec\data\barbiturates.rda c:\users\jenzig\appdata\local\temp\rtmpoeiqbd\rbuilde446d3a290d\hyperspec\data\barbiturates.rda: permission denied it same whether use command line r cmd build or r studio's build tools (rtools installed, package dependencies installed).
to solve problem, tried change path temporary directory or manually set permissions folders without success. tried execute administrator again no success.
i think, similiar problem discussed here:
https://stat.ethz.ch/pipermail/r-devel/2013-april/066389.html
but there no solution provied problem.
in addition have same problem when try build package win7.
i had problem. had installed package in question using command line:
sudo r -e "install.packages('somepackage', repos='http://cran.rstudio.com/')" then when tried building somepackage package source got permission denied message.
the solution run following command line:
sudo r -e "remove.packages('somepackage')" then able build , check somepackage source.
edit
i see original question specific windows. in case think need run powershell window administrator , use following command:
rscript.exe "remove.packages('somepackage')"
Comments
Post a Comment