Error in install.packages : cannot open file

Hi, I am trying to install the swirl package, but I keep getting the same error:
(I am running R Studio as administrator)

Installing package into ‘C:/Users/user/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘sys’, ‘askpass’, ‘curl’, ‘openssl’, ‘httr’, ‘RCurl’

provo con l'URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/RCurl_1.98-1.2.zip'
Content type 'application/zip' length 3044792 bytes (2.9 MB)
downloaded 2.9 MB

provo con l'URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/swirl_2.4.5.zip'
Content type 'application/zip' length 349606 bytes (341 KB)
downloaded 341 KB

Error in install.packages : cannot open file 'C:/Users/user/Documents/R/win-library/4.0/file2d705a932cb4/sys/utf8.txt': Permission denied

Kindly help.
Thanks
Kattivok

Are you working on a drive that you don't have access to? Work computer or something?

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.