Closed jayhaast closed 10 months ago
You can skip the build stage, that is usually not a problem.
You can also set R_REMOTES_STANDALONE="true"
(https://github.com/r-lib/remotes#standalone-mode), and then remotes does not use pkgbuild.
If it still fails, then try to debug it to see which paths are causing problems.
Thanks for the suggestions. In response:
Ultimately I fixed the the problem by deleting my TMP and TEMP environmental variables (both set to C:\Users\MyUserName\AppData\Local\Temp). This made R CMD Build revert to using C:/Windows/Temp, and this worked for me. The R CMD Build documentation says temp dirs should use forward slashes, which mine didn't, so perhaps that was the problem.
I wonder if this is an issue with some kind of change that came along with Windows 11 - this is the only difference I can think of between myself (couldn't build) and my co-workers (could build). Although their TMP and TEMP variables use the same setting.
It doesn't seem like we can reasonably well fix this in remotes, so I am going to close this now. Hopefully the situation is better with newer R versions.
Hi, I'm getting the below errors when building a package.
The directory I'm installing to is <30 characters, and my
tempdir()
directory is also <40 (I'm assuming this is what would normally get used for temporary file copying). I've also enabled long file paths in the windows registry... but no luck.Other members of my team can build an identical version of this package without any issues.
The output of
.Last.error.trace
is truncating (per the...
in the output below), so I'm having trouble figuring out how to start troubleshooting. Any suggestions would be really appreciated - thanks.sessionInfo:
Output of
build:
output of
.Last.error.trace
: