안녕하세요, 2023년도에 우연히 강의를 접하게 됐고, 열심히 수강중입니다.
먼저, 알아듣기 쉬운 설명과 함께 친절한 강의에 감사드립니다.
제가 지금, rgl을 설치하다가 에러가 떠서 다음 단계로 넘어가지 못하고 있는데, 문제점이 뭔지 알 수 있을까요?
이 질문을 보실 지 모르겠지만, 먼저 고퀄의 강의에 감사드리며, 답변 기다리겠습니다 ^^
> install.packages("rgl")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.2/rgl_1.2.1.tgz'
Content type 'application/x-gzip' length 9888514 bytes (9.4 MB)
==================================================
downloaded 9.4 MB
The downloaded binary packages are in
/var/folders/9z/ljn0yv6s587_sn76nsrxkmtc0000gn/T//Rtmpq538Yf/downloaded_packages
>
> library(rgl)
Registered S3 methods overwritten by 'rgl':
method from
knit_print.rglId
knit_print.rglOpen3d
sew.rglRecordedplot
Error in dyn.load(dynlib <- getDynlib(dir)) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/rgl/libs/rgl.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/rgl/libs/rgl.so, 0x0006): Library not loaded: /opt/X11/lib/libGLU.1.dylib
Referenced from: <AFD7D4AE-732C-3273-9BC7-B9D4DEC94EC8> /Library/Frameworks/R.framework/Versions/4.2/Resources/library/rgl/libs/rgl.so
Reason: tried: '/opt/X11/lib/libGLU.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/X11/lib/libGLU.1.dylib' (no such file), '/opt/X11/lib/libGLU.1.dylib' (no such file), '/usr/local/lib/libGLU.1.dylib' (no such file), '/usr/lib/libGLU.1.dylib' (no such file, not in dyld cache)
Error: package or namespace load failed for ‘rgl’:
.onLoad failed in loadNamespace() for 'rgl', details:
call: rgl.init(initValue, onlyNULL)
error: OpenGL is not available in this build
In addition: 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...
> install.packages(c("class", "foreign", "KernSmooth", "lattice", "MASS", "Matrix", "mgcv", "nlme", "nnet", "spatial", "survival"))