Coding/R

[RStudio] RStudio 설치 에러

어기적어기적 2022. 7. 30. 23:32
728x90

R 언어를 공부해보고 싶어서 RStudio를 설치하려 했습니다.

RStudio를 받고 설치를 하려고 하자마자 에러 팝업이 떠서 당황하고 검색하니

설치 과정을 무시하고 설치하고 있었습니다.

 

에러 내용

Error reading R script (), system error 2 (No such file or directory); Unable to find libR.dylib in expected locationswithin R Home directory /Library/Frameworks/R.framework/Resources

 

 

설치를 하려고 하자마자 에러가 나서 뭐지 하고 찾아보니 R을 우선 설치해야 했습니다.

RStudio 설치 과정도 Install R이라고 친절하게 적혀 있었는데 못 봤습니다.

 

저는 맥북 에어 M1 사용자여서 이에 해당하는 파일로 설치했습니다.

https://cran.r-project.org/bin/macosx/

 

R for macOS

R 4.2.1 binary for macOS 10.13 (High Sierra) and higher, Intel 64-bit build, signed and notarized package. Contains R 4.2.1 framework, R.app GUI 1.79 in 64-bit for Intel Macs, Tcl/Tk 8.6.6 X11 libraries and Texinfo 6.7. The latter two components are option

cran.r-project.org

설치는 특별한 선택 없이 진행해서 설치했습니다.

 

설치가 끝난 후 다시 RStudio를 실행하니 실행이 잘 됐습니다.

모두 설치 순서를 잘 지켜주시길 바랍니다.

728x90