但不能从库中调用它吗

但不能从库中调用它吗

本文介绍了可以在R中下载软件包,但不能从库中调用它吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够下载"LMERConvenienceFunctions"包

I was able to download the package "LMERConvenienceFunctions"

The downloaded binary packages are in
/var/folders/2p/3h5yk1gx4fs1gd8gtdbhdd900000gn/T//RtmpHvJyRm/downloaded_packages

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

However when I try to call it using:

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"软件包,而未同时下载其依赖项?正在运行

It seems like you have tried to install the "LMERConvenienceFunctions" package without also downloading it's dependencies? Running

install.packages("LMERConvenienceFunctions")

,然后在这种情况下仅使用library(LMERConvenienceFunctions)对我有用.如果仍然无法解决问题,请尝试手动安装rgl

and then just using library(LMERConvenienceFunctions) worked for me in this case. If this still doesn't work, try manually installing rgl

这篇关于可以在R中下载软件包,但不能从库中调用它吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 09:32