Difference between revisions of "R: Install di Ubuntu 18.04"

From OnnoWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
Install CRAN
 
Install CRAN
  
  sudo apt install apt-transport-https software-properties-common
+
  sudo apt -y install apt-transport-https software-properties-common
 +
sudo apt -y install libudunits2-dev libcurl4-openssl-dev libssl-dev libxml2-dev libapparmor-dev libpoppler-cpp-dev
 +
sudo apt -y install libgdal-dev libproj-dev libcurl4-openssl-dev libssl-dev
 +
 
 
  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
 
  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
 
  sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
 
  sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
Line 11: Line 14:
 
  sudo apt update
 
  sudo apt update
 
  sudo apt install r-base
 
  sudo apt install r-base
 +
sudo R CMD javareconf
 +
sudo apt -y install r-cran-rjava
 +
  
 
Cek
 
Cek

Revision as of 13:44, 26 November 2019

Login sebagai user biasa.

Install CRAN

sudo apt -y install apt-transport-https software-properties-common
sudo apt -y install libudunits2-dev libcurl4-openssl-dev libssl-dev libxml2-dev libapparmor-dev libpoppler-cpp-dev
sudo apt -y install libgdal-dev libproj-dev libcurl4-openssl-dev libssl-dev
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'

Install R

sudo apt update
sudo apt install r-base
sudo R CMD javareconf
sudo apt -y install r-cran-rjava


Cek

R --version


Pranala Menarik