Make a file writable in order to add new packages

前端 未结 4 1816
长情又很酷
长情又很酷 2020-12-04 02:03

I use Rstudio and try to add new packages through command console.

It fails to install it for this reason

install.packages(\"devtools\"); devtools::i         


        
相关标签:
4条回答
  • 2020-12-04 02:26

    Just run RStudio as an administrator. Right-Click on it and choose run as Administrator

    0 讨论(0)
  • 2020-12-04 02:26

    I ran into this problem. The issue for me was using single quotes instead of double quotes. Using install.packages("foo") worked fine, whereas install.packages('foo') caused this issue.

    0 讨论(0)
  • 2020-12-04 02:42

    As i have found out that disabling the Ransomware protection on Window Defender allows me to write in the directory.

    This solved the problem. Hope it works for you.

    0 讨论(0)
  • 2020-12-04 02:47

    Changing the security setting on the R folder to "full control" fixed this for me. See the third posting down at this link for step by step instructions: Unable to update R packages in default library on Windows 7

    0 讨论(0)
提交回复
热议问题