Error installing corrplot package: 'lib = "C:/Users/mahes/Documents/R/win-library/3.6"' is not writable

install.packages("corrpolt", dependencies = TRUE, repos = 'http://cran.rstudio.com/')
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 package into ‘C:/Users/mahes/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
  'lib = "C:/Users/mahes/Documents/R/win-library/3.6"' is not writable
Error in install.packages : unable to install packages`Preformatted text`

Hi monish9894,

it looks like you don't have write access to your R library. Does the path C:/Users/mahes/Documents/R/win-library/3.6 exists on your computer and is accessible by the system user that tries to install the package?

BR
Sebastian

Can you please tell me a work around it.
thank you

Hi @monish9894,

there is no actual workaround. You have to check in Windows Explorer that the directory exists. If the directory exists you should check that your Windows user and the Windows user that has R installed is able to write in this directory.

Best regards
Sebastian

Okay, I will do that.
Thank you
Best regards
Monish Selvanayagam

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