Error in package installation

Asked

Viewed 577 times

2

I started work using the R, and during the installation of some packages such as Devtools, appears the following message specifying the error:

* installing *source* package 'devtools' ...
** package 'devtools' successfully unpacked and MD5 sums checked
Warning in file(file, if (append) "a" else "w") :
  cannot open file 'C:/Users/Simico/Documents/R/win-library/3.4/devtools/DESCRIPTION': No such file or directory
Error in file(file, if (append) "a" else "w") : 
  não é possível abrir a conexão
ERROR: installing package DESCRIPTION failed for package 'devtools'
* removing 'C:/Users/Simião/Documents/R/win-library/3.4/devtools'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\Simião\Documents\R\win-library\3.4" C:\Users\Public\Documents\Wondershare\CreatorTemp\RtmpqyR84v/downloaded_packages/devtools_1.13.4.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

I don’t know what I’m supposed to do AS is Windows 7 and the version of R 3.4.0

  • 1

    Simião, it seems that you are having problems of encoding. See that the error indicates trying to load from a "Simico" folder instead of "Simian". I would try to change the encoding of your UTF-8 session to latin1.

  • Try to install as administrator, it seems to me a permission problem

  • As a way to avoid accentuation errors, and make sure that the code has greater fluidity, do not put accents in the files/folders/paths in R. Otherwise, you will always need to work around this, as @Ailtonandradedeoliveira said

1 answer

2

Hello,

i also had a similar error while trying to download any package via devtools::install_github.

After searching in issues of the devtools package I discovered that the problem was that my R directory in C:/Users/'user name' contains ASCII characters. I strongly recommend looking: https://github.com/r-lib/devtools/issues/1787

I noticed that your username has a ~ in 'Simião'. I believe that’s your problem. I solved my question by removing the seat of the user name from the folder.

I hope I’ve helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.