Problem on installing Package on R

While I am trying to install package on Rstudio, it show me warming message like
Warning in install.packages :
'lib = "C:/Program Files/R/R-4.0.2/library"' is not writable
Warning in install.packages :
cannot create dir 'C:\Users\Pradeep\Documents\R', reason 'No such file or directory'
Error in install.packages : unable to create ‘C:/Users/Pradeep/Documents/R/win-library/4.0’.
With multiple effort I am unable to solve it.


Please help me to solve the problem.

Perhaps there's something with the permissions set in the folder.
is it in fact writeable ? can you use your windows explorer to browse to C:/Program Files/R/R-4.0.2/library and create a new folder within it, or drop a text file in there ?

You need to run Rstudio as "administrator" to be able to install on this folder.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.