The issue:
On one PC, Rcmd check/Rcmd build always lead with The system cannot find the path specified, and has an exit code of 1. They otherwise operate properly. However, this causes devtools::check and remotes::install_local to fail, leaving me unable to install packages from source properly and causes issues with package deployment scripts I'm using.
Even when running Rcmd check --help
or Rcmd build --help
, before the normal help file, I get the message The system cannot find the path specified and the exit code is 1.
What have I tried:
- A full reinstall of R.
- Using a different version of R.
- Deleting HKCU\Software\R-core and HKLM\Software\R-core from the registry (I've noted that R can run properly without these, they just help RStudio/others help find R).
- Setting R_LIBS_USER in the system environment, and removing it.
What have I found online:
- This post on RStudio Community may have the same issue, but is closed without a reply.
- This post on RStudio Community reports on two people that may have the same issue. One of them hasn't solved it, the other has performed a full Windows reinstallation (which worked, but which I really don't want to do).
- Unable to run packages from GitHub in R using devtools appears to have a different issue, I don't get Error: no packages specified when trying to install anything.
I know this isn't a usual question, as I can't provide a reproducible example. I'm happy to provide any information requested (don't think version
/Sys.info()
/sessioninfo()
provide help since this occurs with multiple R versions, and without starting R at all by just using Rcmd
(but in devtools too of course)). Any suggestions are very much welcome.