能够在R中下载包,但不能从库中调用它?

能够在R中下载包,但不能从库中调用它?,r,installation,dependencies,package,quartz-graphics,R,Installation,Dependencies,Package,Quartz Graphics,我可以下载“LMERConvenienceFunctions”软件包 但是,当我尝试使用以下方法调用它时: library(LMERConvenienceFunctions) 我得到以下错误: Error : .onLoad failed in loadNamespace() for 'rgl', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object'/Library/

我可以下载“LMERConvenienceFunctions”软件包

但是,当我尝试使用以下方法调用它时:

library(LMERConvenienceFunctions)
我得到以下错误:

Error : .onLoad failed in loadNamespace() for 'rgl', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object'/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgl/libs/rgl.so': dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgl/libs/rgl.so, 6): 
Library not loaded: /opt/X11/lib/libGLU.1.dylib 
Referenced from: /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgl/libs/rgl.so
Reason: image not found
Error: package or namespace load failed for ‘LMERConvenienceFunctions’
有人有什么建议吗


谢谢

您似乎试图安装“LMERConvenienceFunctions”软件包,但没有下载其依赖项?运行

install.packages(“LMERConvenienceFunctions”)


在这种情况下,只需使用
库(LMERConvenienceFunctions)
就可以了。如果这仍然不起作用,请尝试手动安装rgl

您似乎试图安装“LMERConvenienceFunctions”软件包,而不下载其依赖项?运行

install.packages(“LMERConvenienceFunctions”)


在这种情况下,只需使用
库(LMERConvenienceFunctions)
就可以了。如果仍然不起作用,请尝试手动安装rgl

我的问题是没有安装XQuartz。可在此下载:

安装后,rgl开始工作,然后LMERConvenienceFunctions最终也开始工作。整个过程进行了一些调整,所以我在下面粘贴整个代码。请注意,这是在安装XQuartz之后进行的

install.packages("LMERConvenienceFunctions")
install.packages("devtools") #not sure if this is necessary, but doing this before rgl was recommended on another answer on here#
library(devtools)
install.packages("rgl")
rgl.useNULL=TRUE #little thing I had to do even after installing XQuartz#
library(rgl)
library(LMERConvenienceFunctions)

我的问题是我没有安装XQuartz。可在此下载:

安装后,rgl开始工作,然后LMERConvenienceFunctions最终也开始工作。整个过程进行了一些调整,所以我在下面粘贴整个代码。请注意,这是在安装XQuartz之后进行的

install.packages("LMERConvenienceFunctions")
install.packages("devtools") #not sure if this is necessary, but doing this before rgl was recommended on another answer on here#
library(devtools)
install.packages("rgl")
rgl.useNULL=TRUE #little thing I had to do even after installing XQuartz#
library(rgl)
library(LMERConvenienceFunctions)

不,它不-那会有帮助吗?不,它不会-那会有帮助吗?仍然对我不起作用。您的意思是手动安装另一个软件包吗?我可以安装rgl,但再次无法从库中调用它:我可以安装它,但在尝试从库中调用它时遇到类似错误:错误:。在“rgl”的loadNamespace()中onLoad失败,详细信息:call:dyn.load(文件,DLLpath=DLLpath,…)错误:无法加载共享对象“/Library/Frameworks/R.framework/Versions/3.2/Resources/Library/rgl/libs/rgl.so”:其余错误:dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/Library/rgl/libs/rgl.so,6):Library not loaded:/opt/X11/lib/libGLU.1.dylib引用自:/Library/Frameworks/R.framework/Versions/3.2/Resources/Library/rgl/libs/rgl。因此原因:找不到映像错误:“rgl”的包或命名空间加载因手动安装而失败,我的意思是您需要先运行
install.packages(“rgl”)
。也许我说得有点笨拙。您的错误告诉您LMerconvenience函数将无法运行,因为它无法加载rgl,而rgl是正常运行的基础。啊,明白了,谢谢。我也会犯同样的错误。在这两种情况下,错误:无法加载共享对象…原因:找不到图像。仍然无法为我工作。您的意思是手动安装另一个软件包吗?我可以安装rgl,但再次无法从库中调用它:我可以安装它,但在尝试从库中调用它时遇到类似错误:错误:。在“rgl”的loadNamespace()中onLoad失败,详细信息:call:dyn.load(文件,DLLpath=DLLpath,…)错误:无法加载共享对象“/Library/Frameworks/R.framework/Versions/3.2/Resources/Library/rgl/libs/rgl.so”:其余错误:dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/Library/rgl/libs/rgl.so,6):Library not loaded:/opt/X11/lib/libGLU.1.dylib引用自:/Library/Frameworks/R.framework/Versions/3.2/Resources/Library/rgl/libs/rgl。因此原因:找不到映像错误:“rgl”的包或命名空间加载因手动安装而失败,我的意思是您需要先运行
install.packages(“rgl”)
。也许我说得有点笨拙。您的错误告诉您LMerconvenience函数将无法运行,因为它无法加载rgl,而rgl是正常运行的基础。啊,明白了,谢谢。我也会犯同样的错误。在这两种情况下,错误:无法加载共享对象…原因:找不到映像。