제목 그대로 다음과 같은 오류가 날 수 있습니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> require(rugarch) | |
필요한 패키지를 로딩중입니다: rugarch | |
Error : .onLoad가 loadNamespace()에서 'rgl'때문에 실패했습니다: | |
호출: dyn.load(file, DLLpath = DLLpath, …) | |
에러: 공유된 객체 '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rgl/libs/rgl.so'를 로드 할 수 없습니다: | |
dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib | |
Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/rgl/libs/rgl.so | |
Reason: image not found |
그러면 XQuartz에 가서 XQuartz을 다운받아서 설치하시고 R을 종료하고 재실행하시면 잘 설치됩니다. 출처는 다음과 같습니다.
Installing “rgl” package in R, Mac OSX El Captian [fixed] – Stack Overflow