I am unable to download and install packages in R

I am unable to download and install R packages.
While installing a dialogue box pop up, station that use your personal library instead and when clicking yes, it is showing destination does not exist or found.

Hi,

I think you should more information to solve your problem.

  • which Packages
  • which Source (CRAN, Github , Bioconductor...)
  • which OS / R / Rstudio version
  • Error log

not sure, but I think you mentioned personal library, so it may be helpful to run with administrator access.

  1. Run Rstudio as admin
    check this, https://stackoverflow.com/questions/45316742/run-r-as-administrator

  2. Install Rtools
    If you use R 4.0 , Rtools 40

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

I'm not able to install any of the packages.
Source is CRAN
OS : windows 10
Error log :
Warning : Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Https://cran.rstudio.com/bin/windows/Rtools/
Installing packages into 'C:/Program Files/RStudio/library'
(as 'lib' is unspecified)
Warning in install.packages :
'lib = "C:/Program Files/RStudio/library" ' is not writable
Error in install.packages : unable to install

Also while installing on dialogue box pops up stating 'would you like to use a personal library instead' yes or no