2017-02-10 7 views
1

Amazonでは、Rインスタンスを起動し、R & RStudioをインストールするための明確なインストールガイドを提供しています。ガイドは、ここで見つけることができます:彼らはRのバージョンを必要とするhttps://aws.amazon.com/blogs/big-data/running-r-on-aws/AWS EC2 Linux AMIでのR&R StudioのインストールR

は、残念ながら、これは、スラムのように、特定のパッケージのための課題を提供R.の古いバージョン(3.2.2)をインストール> 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

dockerを使用して最新バージョンをインストールすることもできます。 https://hub.docker.com/r/rocker/rstudio/ – PinkFluffyUnicorn

+0

こんにちはチンズン、参考に感謝します。しかし、ブログではUbuntuを扱い、Linuxでは扱っていない。 –

答えて

0

これを試してみてください:

私はどのように-へのインストールUbuntuの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

関連する問題