개발 이야기/Others
How to install latest R in ubuntu?
가마뫼
2015. 5. 8. 22:00
ubuntu 환경에서 R 최신 버전 설치
1. Open the terminal
2. Type the below command
1 | sudo vi /etc/apt/sources.list | cs |
3. Add an entry like
1 2 3 4 5 6 7 8 9 10 11 | # Ubuntu 15.04 deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu vivid/ # Ubuntu 14.10 deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu utopic/ # Ubuntu 14.04 deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/ # Ubuntu 12.04 deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/ | cs |
For example
My environment is ubuntu 14.04, so add entry like this
1 | deb http://healthstat.snu.ac.kr/CRAN/bin/linux/ubuntu trusty/ | cs |
You can find favorite CRAN mirror this page
4. Type the below command
1 | sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 | cs |
5. Type the under command
6. Enjoy
반응형