Difference between revisions of "R: Install di Ubuntu"

From OnnoWiki
Jump to navigation Jump to search
Line 4: Line 4:
 
  chmod -Rf 777 /usr/local/lib/
 
  chmod -Rf 777 /usr/local/lib/
 
  chown -Rf nobody: /usr/local/lib/
 
  chown -Rf nobody: /usr/local/lib/
 +
chmod -Rf 777 /home/onno/R/x86_64-pc-linux-gnu-library/3.4
 +
chmod -Rf 777 /usr/local/lib/R/site-library
 +
chmod -Rf 777 /usr/lib/R/site-library               
 +
chmod -Rf 777 /usr/lib/R/library
 +
chown -Rf nobody: /home/onno/R/x86_64-pc-linux-gnu-library/3.4
 +
chown -Rf nobody: /usr/local/lib/R/site-library
 +
chown -Rf nobody: /usr/lib/R/site-library               
 +
chown -Rf nobody: /usr/lib/R/library
 +
 
  apt -y install r-base
 
  apt -y install r-base
 
  exit
 
  exit

Revision as of 15:54, 6 November 2018

Instalasi & pastikan agar R menggunakan /usr/local/lib kalau tidak suka rewel untuk rJava & RWeka

sudo su
chmod -Rf 777 /usr/local/lib/
chown -Rf nobody: /usr/local/lib/
chmod -Rf 777 /home/onno/R/x86_64-pc-linux-gnu-library/3.4
chmod -Rf 777 /usr/local/lib/R/site-library 
chmod -Rf 777 /usr/lib/R/site-library                
chmod -Rf 777 /usr/lib/R/library
chown -Rf nobody: /home/onno/R/x86_64-pc-linux-gnu-library/3.4
chown -Rf nobody: /usr/local/lib/R/site-library 
chown -Rf nobody: /usr/lib/R/site-library                
chown -Rf nobody: /usr/lib/R/library
apt -y install r-base
exit

Supaya aman untuk melakukan text mining, lakukan juga

sudo apt -y install default-jre
sudo apt -y install default-jdk
sudo R CMD javareconf
sudo apt -y install r-cran-rjava
sudo apt -y install libgdal-dev libproj-dev

Masuk ke R sebagai user biasa

R

Install rJava & RWeka

install.packages("rJava")
install.packages("RWeka")


Menjalankan sebagai user biasa, dengan

sudo -i R


Pranala Menarik