Closed Zepeng-Mu closed 10 months ago
Try standalone mode, see https://github.com/r-lib/remotes#standalone-mode
Did you install R from conda? If not then deactivate conda while using R.
Thanks for the quick reply. I actually also need set build=F
. I'm not sure what it means. My R is installed with conda. It worked fine before, but I recently updated conda.
> Sys.setenv(R_REMOTES_STANDALONE="true")
> remotes::install_github("stephenslab/mashr")
Downloading GitHub repo stephenslab/mashr@HEAD
Running `R CMD build`...
* checking for file ‘/tmp/RtmpYeymKC/remotes7ade6369c45/stephenslab-mashr-e482cf2/DESCRIPTION’ ... OK
* preparing ‘mashr’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* checking for LF line-endings in source and make files and shell scripts
STDOUT:
* checking for file ‘/tmp/RtmpYeymKC/remotes7ade6369c45/stephenslab-mashr-e482cf2/DESCRIPTION’ ... OK
* preparing ‘mashr’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* checking for LF line-endings in source and make files and shell scripts
STDERR:
Warning in file(file, "wb") :
cannot open file 'mashr/cleanup': Text file busy
Error in file(file, "wb") : cannot open the connection
Execution halted
Error: Failed to install 'mashr' from GitHub:
Failed to `R CMD build` package, try `build = FALSE`.
> remotes::install_github("stephenslab/mashr", build=F)
Unfortunately it is unlikely that we can help you with this, because we don't use conda.
I get this "System command 'R' failed" error message when using
devtools::install_github()
orremotes::install_github()
. This is happening to all packages. I'm using a conda env.