无法加载R中的任何包(无法加载共享对象) [英] Unable to load any package in R (unable to load shared object)

查看:583
本文介绍了无法加载R中的任何包(无法加载共享对象)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的2年里,我一直在使用R。我昨天尝试启动程序来运行我的一个脚本和我使用的程序包无法加载。我不知道发生了什么事情,因为它早点工作很好。我试图卸载并重新安装软件,但没有任何帮助。这是我需要()/ library()一个包(例如ggplot2)时得到的错误:

 > require ggplot2)
加载所需的包:ggplot2
inDL(x,as.logical(local),as.logical(now),...)中的错误:
无法加载共享对象' //mypath/myuser/data/Documents/R/win-library/3.2/digest/libs/x64/digest.dll':
LoadLibrary failed:Access被拒绝。

>库(ggplot2)
inDL(x,as.logical(local),as.logical(now),...)中的错误:
无法加载共享对象//mypath/myuser/data/Documents/R/win-library/3.2/digest/libs/x64/digest.dll:
LoadLibrary失败:访问被拒绝。

我发现很多人在不同的网站上问同一个问题,但他们的主要问题是具体包。我遇到了所有软件包的麻烦。
任何想法如何解决这个问题?
非常感谢。

解决方案

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


I have been using R for the last 2 years. I tried to start the program yesterday to run one of my scripts and the packages that I am using failed to load. I am not sure what happened as it was working fine earlier. I tried to uninstall and re-install the software but it wasn't of any help. Here's the error I get when I require()/library() a package (for example 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.

I have found many people asking the same question on different websites, but their main problem was with a specific package. I am having this trouble with all packages. Any ideas how I can solve this problem? Much appreciated.

解决方案

As BondedDust has explained in the comments, the problem has to do with the permissions that are given to users. I am connected to a network where the libraries are saved on a shared space. The issue was resolved by moving the default library to a local path. The process that needs to be followed to change the library to a local one is quite simple and it is mentioned in the second answer in this question on stackoverflow.

这篇关于无法加载R中的任何包(无法加载共享对象)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆