无法在 R 中加载任何包(无法加载共享对象)

Err*_*404 5 error-handling dll r package shared-objects

过去 2 年我一直在使用 R。我昨天试图启动该程序以运行我的脚本之一,但我使用的包未能加载。我不确定发生了什么,因为它之前工作正常。我试图卸载并重新安装该软件,但没有任何帮助。这是我在 require()/library() 包(例如 ggplot2)时遇到的错误:

>require(ggplot2)
Loading required package: ggplot2
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object '//mypath/myuser/data/Documents/R/win-library/3.2/digest/libs/x64/digest.dll':
  LoadLibrary failure:  Access is denied.

>library(ggplot2)
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
      unable to load shared object '//mypath/myuser/data/Documents/R/win-library/3.2/digest/libs/x64/digest.dll':
      LoadLibrary failure:  Access is denied.
Run Code Online (Sandbox Code Playgroud)

我发现很多人在不同的网站上问同样的问题,但他们的主要问题是特定的包。我对所有包裹都遇到了这个问题。有什么想法可以解决这个问题吗?非常感激。

Err*_*404 5

正如 BondedDust 在评论中所解释的那样,问题与授予用户的权限有关。我连接到一个网络,其中的库保存在共享空间上。通过将默认库移动到本地路径解决了该问题。将库更改为本地库所需遵循的过程非常简单,在stackoverflow 上这个问题的第二个答案中提到了这一点。