Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing devtools with install_github on Windows 7 #1326

Closed
nuno-agostinho opened this issue Sep 3, 2016 · 5 comments
Closed

Comments

@nuno-agostinho
Copy link

nuno-agostinho commented Sep 3, 2016

I'm using Windows 7 (64-bit) to install the GitHub version of devtools with the command devtools::install_github("hadley/devtools", force = TRUE), but this fails with the following error:

Downloading GitHub repo hadley/devtools@master
from URL https://api.github.com/repos/hadley/devtools/zipball/master
Installing devtools
"C:/PROGRA~1/R/R-33~1.1/bin/i386/R" --no-site-file --no-environ --no-save  \
  --no-restore --quiet CMD INSTALL  \
  "C:/Users/Daniel/AppData/Local/Temp/RtmpeEa7Y3/devtoolsa701c934f7e/hadley-devtools-26c507b"  \
  --library="C:/Users/Daniel/Documents/R/win-library/3.3" --install-tests 

* installing *source* package 'devtools' ...
** R
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
Error : package 'devtools' is not installed for 'arch = x64'
Error: loading failed
Execution halted
ERROR: loading failed for 'x64'
* removing 'C:/Users/Daniel/Documents/R/win-library/3.3/devtools'
* restoring previous 'C:/Users/Daniel/Documents/R/win-library/3.3/devtools'
Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
  problem copying C:\Users\Daniel\Documents\R\win-library\3.3\00LOCK-hadley-devtools-26c507b\devtools\libs\i386\devtools.dll to C:\Users\Daniel\Documents\R\win-library\3.3\devtools\libs\i386\devtools.dll: Permission denied
Error: Command failed (1)

Do you know why this occurs?

@mpettis
Copy link

mpettis commented Oct 3, 2016

Following these instructions helped me (found after having similar issue, finding this issue): #426

@lbusett
Copy link
Contributor

lbusett commented Oct 19, 2016

Hi. having the same problem on Windows 10 64 bit

@mpettis
Copy link

mpettis commented Oct 19, 2016

Did you try the instructions at: #426 ?

@lbusett
Copy link
Contributor

lbusett commented Oct 19, 2016

thanks. solved.

I actually DID try those instructions before posting, and it wasn't working... I probably just had to restart RStudio.

@hadley hadley closed this as completed Nov 3, 2016
@lock
Copy link

lock bot commented Sep 18, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants