2017-02-10 2 views
1

Amazon은 마이크로 인스턴스를 시작하고 R & RStudio를 설치하기위한 명확한 설치 안내서를 제공합니다. 가이드는 여기에서 찾을 수 있습니다 : https://aws.amazon.com/blogs/big-data/running-r-on-aws/AWS EC2 Linux AMI에 R & RStudio 설치 R

불행하게도이 슬램처럼 특정 패키지에 대한 문제를 제공 R.의 이전 버전 (3.2.2)을 설치, 그들이 R 버전을 필요로하기> 3.3.1

사용자 데이터를 변경하는 단계에 대한 안내에서 R & RStudio의 설치를 다루는 아래 스크립트를 제공합니다. 최신 버전의 R을 설치하기 위해 스크립트를 어떻게 변경합니까?

#!/bin/bash 
#install R 
yum install -y R 
#install RStudio-Server 
wget https://download2.rstudio.org/rstudio-server-rhel-0.99.465-x86_64.rpm 
yum install -y --nogpgcheck rstudio-server-rhel-0.99.465-x86_64.rpm 
#install shiny and shiny-server 
R -e "install.packages('shiny', repos='http://cran.rstudio.com/')" 
wget https://download3.rstudio.org/centos5.9/x86_64/shiny-server-1.4.0.718-rh5-x86_64.rpm 
yum install -y --nogpgcheck shiny-server-1.4.0.718-rh5-x86_64.rpm 
#add user(s) 
useradd username 
echo username:password | chpasswd 

감사

+0

이 CRAN에서 직접 설치? https://www.r-bloggers.com/setting-up-an-aws-instance-for-r-rstudio-opencpu---shiny-server/ – chinsoon12

+0

도커를 사용하여 최신 버전을 설치할 수도 있습니다. https://hub.docker.com/r/rocker/rstudio/ – PinkFluffyUnicorn

+0

안녕 chinsoon, 참조 주셔서 감사합니다. 그러나 블로그는 리눅스가 아니라 우분투를 다루고있다. –

답변

0

이 시도 :

내가 어떻게에 설치 우분투 R에서이 찢어진
# Install r-base 
yum install r-base 

# Install newest version of R from source 
wget https://cran.r-project.org/src/base/R-3/R-3.4.0.tar.gz 
./configure --prefix=/home/$user/R/R-3.4.0 --with-x=yes --enable-R-shlib=yes --with-cairo=yes 
make 
# NEWS.pdf file is missing and will make installation crash. 
touch doc/NEWS.pdf 
make install 

# Do not forget to update your PATH 
export PATH=~/R/R-3.4.0/bin:$PATH 
export RSTUDIO_WHICH_R=~/R/R-3.4.0/bin/R 

: http://jtremblay.github.io/software_installation/2017/06/21/Install-R-3.4.0-and-RStudio-on-Ubuntu-16.04