Skip to content

Local usage:R Shiny Server

Jens Preussner edited this page Sep 23, 2019 · 2 revisions

To run WIlsON on a R Shiny Server (Debian), please update and install the following Debian packages:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base libnlopt-dev wget libssl-dev libxml2-dev libcurl4-openssl-dev git gdebi-core

Install R Shiny server according to the manual (make sure to install to global R library, NOT personal!) and install the WIlsON R package:

install.packages("BiocManager")
BiocManager::install("wilson")

Clone the WIlsON apps repository and move the wilson-basic folder into R Shiny server apps folder (e.g. /srv/shiny-server/sample-apps/wilson-basic).

Change the owner of the R Shiny apps folder to be the “shiny” user.

sudo chown –R shiny:shiny /srv/shiny-server

Restart R Shiny server.

sudo systemctl stop shiny-server
sudo systemctl daemon-reload
sudo systemctl start shiny-server

Using custom data

Add you custom data files into the wilson-basic/data folder. After reloading, the new dataset can be selected from the apps drop down menue in the feature selection pane:

cp mydata.clarion /srv/shiny-server/sample-apps/wilson-basic/data
sudo systemctl stop shiny-server
sudo systemctl daemon-reload
sudo systemctl start shiny-server