I tried to build the R package hyperSpec
using Windows Vista. When I do so, I get the following error message:
warning in file.copy(pkgname, Tdir, recursive = TRUE)
Problem copying .\hyperSpec\data\barbiturates.rda to C:\Users\JenZIG\AppData\Local\Temp\RtmpOEIqBD\Rbuilde446d3a290d\hyperSpec\data\barbiturates.rda: Permission denied
It is all the same whether I use the command line with R CMD build
or R Studio's Build Tools (RTools installed, all package dependencies installed).
To solve the problem, I tried to change the path for the temporary directory or to manually set the permissions for the folders but without success. I tried to execute everything as administrator but again no success.
I think, a similar problem was discussed here:
https://stat.ethz.ch/pipermail/r-devel/2013-April/066389.html
However, there is no solution provided for this problem.
In addition, I have the same problem when I try to build the package with Win7.