|
Services |
Virtual /
Shiny Server SetupShiny R serverSee also Shiny load distribution Enter VZ guestIn this case, assuming 'goldone': Make sure all is up to date
Install R from CRANInstructions from https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-16-04-2 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 apt install -y software-properties-common add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/' apt install apt-transport-https apt update apt install -y r-base gdebi-core Site-wide R configurationWe want
local({
r <- getOption("repos")
r["CRAN"] <- "http://mirror.its.dal.ca/cran/"
options(repos = r)
})
Since we are not using an SSL-capable mirror, we want to squelch the big red warning: cat <<EOF >> /etc/R/Renviron.site RSTUDIO_DISABLE_SECURE_DOWNLOAD_WARNING=1 EOF Install ShinyBy default packages go into
R -e "install.packages('shiny')"
R -e "install.packages('rmarkdown')"
wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.7.907-amd64.deb
gdebi shiny-server-1.5.7.907-amd64.deb
TestingFrom any computer, open both a terminal and a web browser: In terminal: ssh -L 3838:192.168.128.11:3838 anchor.phys.ocean.dal.ca Password: anchor~:$ In web browser: http://localhost:3838/ |