Install R & RStudio for Ubuntu
r-project.org official source to install the latest R system.
add R source
import the GPG key and install r-base
ROracle is much faster compare with RODBC or RJDBC in performance, You can found new version of ROracle or DBI package in CRAN, it is also required you properly install the Oracle Instant Client.
manual install the ROracle
RStudio Server
Install RStudio Server
echo 'rsession-memory-limit-mb=1000' > /etc/rstudio/rserver.conf
echo 'rsession-stack-limit-mb=4' >> /etc/rstudio/rserver.conf
echo 'rsession-process-limit=20' >> /etc/rstudio/rserver.conf
# Only pass below if you will using proxy mode
echo 'www-address=127.0.0.1' >> /etc/rstudio/rserver.conf
groupadd rstudio
|
This section is optional, assured already install nginx in server.
ln -s /usr/lib/rstudio-server/extras/init.d/debian/rstudio-server /etc/init.d/rstudio-server
vi /etc/init.d/rstudio-server
|
vi
Now you can restart rstudio-server via standard init.d service way
adduser --ingroup rstudio cindy
passwd cindy # setting password
|
Usually it is more good to upgrade the r-base in system wide packages instead of per user.