Question: (Closed) R package installtion error
0
gravatar for amitunited0532
13 months ago by
amitunited053210 wrote:

When i gonna install packages it showing error like this.

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/survival_2.42-3.zip'
Content type 'application/zip' length 4396605 bytes (4.2 MB)
downloaded 4.2 MB

trying URL 'https://bioconductor.org/packages/3.3/bioc/bin/windows/contrib/3.3/systemPipeR_1.6.4.zip'
Content type 'application/zip' length 8452906 bytes (8.1 MB)
downloaded 8.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/XML_3.98-1.11.zip'
Content type 'application/zip' length 4307695 bytes (4.1 MB)
downloaded 4.1 MB

Error in unzip(zipname, exdir = dest) : 
  **cannot open file 'C:/Users/Amit/Documents/R/win-library/3.3/file16dc44deeaa/assertthat/DESCRIPTION': Permission denied**

Please help me to fix this problems. Thank you

ADD COMMENTlink modified 13 months ago by finswimmer12k • written 13 months ago by amitunited053210
1

Hello amitunited0532!

We believe that this post does not fit the main topic of this site.

Not bioinformatics

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

ADD REPLYlink written 13 months ago by RamRS24k

Looks like you don't have administrator permission, try to get them first and then try again,

ADD REPLYlink written 13 months ago by Benn7.7k

How can get administrator permission in R studio?

ADD REPLYlink written 13 months ago by amitunited053210
1

Get an administrator account for windows.

ADD REPLYlink written 13 months ago by Benn7.7k
1

If your account has local admin privileges then right click on R-studio icon and use "run as administrator". Looks like you are using Windows so this should work.

ADD REPLYlink modified 13 months ago • written 13 months ago by genomax71k

Read about lib argument of install.packages(), and set it to a directory where you have write access.

lib - character vector giving the library directories where to install the packages. Recycled as needed. If missing, defaults to the first element of .libPaths().

ADD REPLYlink written 12 months ago by zx87548.2k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 784 users visited in the last hour