Closed jesuscgaliano closed 2 years ago
Hi,
try to install the rgl package, then restart R completely, then re-install the cognitivemodels package
install.packages("rgl")
Can you report back if that works? Best, Jana
On 17.05.2022 19:43, jesuscgaliano wrote:
ERROR: lazy loading failed for package ‘cognitivemodels’
removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cognitivemodels’ Warning messages: 1: In i.p(...) : installation of package ‘rgl’ had non-zero exit status 2: In i.p(...) : installation of package ‘/var/folders/nk/0fr4rt8x5p9dw90m2w2nphww0000gn/T//Rtmpv7tgQQ/file5a3e6bde1d66/cognitivemodels_0.0.12.tar.gz’ had non-zero exit status
library(cognitivemodels) Error in library(cognitivemodels) : there is no package called ‘cognitivemodels’
— Reply to this email directly, view it on GitHub https://github.com/JanaJarecki/cognitivemodels/issues/86, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACK23H2I2TOWUTBNXBGLJK3VKPLFDANCNFSM5WFWQWFQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi Jana, thanks for your reply, I've done! but it does not work (:
Best, Jesús
Output lines just before installing:
installing to /Library/Frameworks/R.framework/Versions/4.1/Resources/library/00LOCK-cognitivemodels/00new/cognitivemodels/libs R data moving datasets to lazyload DB byte-compile and prepare package for lazy loading help installing help indices building package indices installing vignettes testing if installed package can be loaded from temporary location checking absolute paths in shared objects and dynamic libraries testing if installed package can be loaded from final location testing if installed package keeps a record of temporary installation path
library(cognitivemodels) Error in dyn.load(dynlib <- getDynlib(dir)) : unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/rgl/libs/rgl.so': dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/rgl/libs/rgl.so Reason: image not found Error: package or namespace load failed for ‘cognitivemodels’: .onLoad failed in loadNamespace() for 'rgl', details: call: rgl.init(initValue, onlyNULL) error: OpenGL is not available in this build Además: Warning messages: 1: Loading rgl's DLL failed. This build of rgl depends on XQuartz, which failed to load. See the discussion in https://stackoverflow.com/a/66127391/2554330 2: Trying without OpenGL...
Hi Jana, I think it works fine after updating RStudio and R Thanks again
Hi, thanks for updating!
ERROR: lazy loading failed for package ‘cognitivemodels’