Install R 3.4.1 and Rstudio on ubuntu 16.04 LTS

It is now available using apt-get.

Install R 3.4.1 on ubuntu 16.04 LTS

cd $HOME
wget https://cran.rstudio.com/src/base/R-3/R-3.4.1.tar.gz
tar xvf R-3.4.1.tar.gz
cd R-3.4.1
sudo apt-get install gcc fort77 aptitude
sudo aptitude install g++
sudo aptitude install xorg-dev
sudo aptitude install libreadline-dev
sudo aptitude install gfortran
gfortran --version
sudo apt install libpcre3-dev liblzma-dev libbz2-dev
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
sudo apt-get install texlive-base
sudo apt-get install texinfo
sudo apt-get install texlive-fonts-extra
sudo apt-get install libcurl4-openssl-dev

sudo apt-get install libcairo2-dev libpng-dev zlib1g-dev libpixman-1-dev libxt-dev
java -version
# need to build shared library (--enable-R-shlib)
# the --enable-R-shlib option is needed for the RStudio IDE to work
sudo ./configure --enable-R-shlib      
sudo make
sudo make install
R --version
cd $HOME
rm R-3.4.1.tar.gz
sudo rm -rf R-3.4.1


Only one warning is shown during compilation:
main.c: In function ‘dummy_ii’:
main.c:1669:12: warning: function returns address of local variable [-Wreturn-local-addr]
     return (uintptr_t) ⅈ

            ^

Now you can install Rstudio (here for a 32 bits system; choose the correct one for you here https://www.rstudio.com/products/rstudio/download/):

sudo apt-get install gdebi-core
wget https://download1.rstudio.org/rstudio-1.0.143-i386.deb
sudo gdebi -n rstudio-1.0.143-i386.deb
rm rstudio-1.0.143-i386.deb


To know if you have a 32-bits or 64-bits system, enter:
uname -a

The machine hardware name lists whether your system is 32-bit (“i686” or “i386”) or 64-bit (“x86_64”).

Commentaires

  1. Install R 3.4.1 And Rstudio On Ubuntu 16.04 Lts >>>>> Download Now

    >>>>> Download Full

    Install R 3.4.1 And Rstudio On Ubuntu 16.04 Lts >>>>> Download LINK

    >>>>> Download Now

    Install R 3.4.1 And Rstudio On Ubuntu 16.04 Lts >>>>> Download Full

    >>>>> Download LINK Ab

    RépondreSupprimer

Enregistrer un commentaire

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04