Cannot load any packages

Hi there,

I'm a relative beginner using R. Whenever I try and load a package I get the following error message:

library(haven)

Error: package or namespace load failed for ‘haven’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/MGL/R/R/win-library/4.1/rlang/libs/x64/rlang.dll':
LoadLibrary failure: Access is denied.
In addition: Warning message:
package ‘haven’ was built under R version 4.1.1

Any advice on how to solve would be greatly appreciated!

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.