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

install.packages("corrpolt", dependencies = TRUE, repos = '')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
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?


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

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.