반응형

R - 여러개의 독립적인 R Version 설치하기


리눅스에서 R을 사용하다보면 여러개의 R 버전을 독립적으로 유지하고 싶을 수 있다. 기존의 버전을 삭제하고 재설치하기에는 수많은 패키지들을 다시 설치해야하기 때문이다. 아래 github는 여러 R 버전을 독립적으로 설치하는 것을 해주는 shell script이다.


https://github.com/DominikMueller64/install_R_source


git commit https://github.com/DominikMueller64/install_R_source


위 명령어를 통해 쉘스크립트를 다운받고 폴더 안으로 들어간다. cd install_R_source


Example: ./install_R_source 3.4.1

R is then installed to /usr/local/R/d.d.d, where the executable is located at /usr/local/R/d.d.d/bin/R. The shell scripts creates a symbolic link to /usr/bin/R-d.d.d, such that the correct R version should be stared by typing R-d.d.d in a shell.

설치 방법은 위와 같이 ./install_R_source 3.4.3 과 같은 식 커맨드에 입력하면 알아서 설치 및 경로 지정까지 해준다. 

반응형
반응형