728x90
반응형
맥에서 R의 edit() 함수를 이용할때 아래와 같은 오류 메세지가 뜨는 경우가 있다.
> a<-edit(a)
Error in check_for_XQuartz(file.path(R.home("modules"), "R_de.so")) :
X11 library is missing: install XQuartz from http://www.xquartz.org
이 오류 메세지는 윈도우에서는 나타나지 않으며
맥에서는 gui로 위 함수를 실행하기위해서 x11라이브러리가 필요하기 때문에 위와 같은 오류메세지가 나오는 것이다.
이를 해결하려면
x11이 포함되어 있는 XQuartz를 설치하면된다
아래를 설치 하고 R을 완전히 껏다 키면 적용이 될것이다.

XQuartz
The XQuartz project is an open-source effort to develop a version of the X.Org X Window System that runs on macOS. Together with supporting libraries and applications, it forms the X11.app that Apple shipped with OS X versions 10.5 through 10.7. Quick Down
www.xquartz.org
설치가 잘되었는지 확인하고자 한다면 터미널에서 아래와 같은 명령어를
xquartz --version
728x90
반응형
'programming language > R' 카테고리의 다른 글
R에서 matrix와 data.frame의 차이 (0) | 2024.08.31 |
---|---|
[R] Ubuntu에서 install.packages 관련 Error (ggplots 설치 안됨) (1) | 2024.04.05 |