Skip to content

Commit

Permalink
Update using-multiple-R-versions-on-linux.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
achubaty authored Apr 10, 2017
1 parent e98829d commit 7a3ab47
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions using-multiple-R-versions-on-linux.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,33 @@ As noted above, using Docker is likely a better solution, as this approach doesn
```bash
cd ~/R/src/
wget https://cran.r-project.org/src/base/R-3/R-3.2.2.tar.gz
tar -xvzf R-3.2.2.tar.gz
RVERSION=3.2.5
wget https://cran.r-project.org/src/base/R-3/R-${RVERSION}.tar.gz
tar -xvzf R-${RVERSION}.tar.gz
```
4. Install:
```bash
cd ~/R/src/R-3.2.2
./configure --prefix=/usr/local/lib/R-3.2.2 --enable-R-shlib --with-blas --with-lapack
cd ~/R/src/R-${RVERSION}
./configure --prefix=/usr/local/lib/R-${RVERSION} --enable-R-shlib --with-blas --with-lapack
make
sudo make install
```
5. Create symlink:
```bash
sudo ln -s /usr/local/lib/R-3.2.2/bin/R /usr/local/bin/R-3.2.2
sudo ln -s /usr/local/lib/R-${RVERSION}/bin/R /usr/local/bin/R-${RVERSION}
```
6. Run a specific R version:
From the commandline, simply do:
From the commandline, simply do (according to `${RVERSION}`):
```bash
R-3.2.2
R-3.2.5
```
## R-devel
Expand Down

0 comments on commit 7a3ab47

Please sign in to comment.