can't install package meta - Error in install.packages : cannot open file '...' Permission denied - Windows

I can't install package meta:
The R shows the error:
Error in install.packages : cannot open file 'C:/Users/Magali/Documents/R/win-library/4.1/file2728ce86ae3/nloptr/doc/nloptr.pdf': Permission denied
Whay can I do???
Thank you!

Common reasons for this particular error on windows machines are;

  • Software, like antivirus, is preventing R from accessing this file. If that's the cause, you can check R and RStudio are not blocked, make sure these are safelisted.
  • Often R and RStudio are installed on Windows machines in admin mode, but then later used in a role with fewer permissions. That is, make sure you have sufficient permissions on your machine to access this file, for example, run R and RStudio as an administrator.

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.