diveRsity online
This page describes a beta project to develop the diveRsity R package into a web app using the new "shiny" package.
Configuration instructions
Users must have R installed on their local system. The latest version and instructions on how to install R can be found at http://cran.r-project.org/.
Users must also install a number of R package to successfully run the web app. Run the following code in the R console:
Users must also install a number of R package to successfully run the web app. Run the following code in the R console:
# install diveRsity and suggested packages
install.packages(c("diveRsity", "doSNOW", "doParallel"))
The 'shiny' package from the people at Rstudio is also required. It can be accessed and installed using the following code:
# install shiny (from the RStudio developers)
install.packages("shiny")
Following these installations, users should download the server.R and ui.R files from github and save them to a folder on their local system (e.g. 'C:/Users/Kevin/R/diveRsity'). This location should be set as the working directory in R.
N.B. file names must be retained.
The files can be downloaded from https://github.com/kkeenan02/diveRsity-online
N.B. file names must be retained.
The files can be downloaded from https://github.com/kkeenan02/diveRsity-online
The app can be run. Users should type the following code into the R console:
# Load the shiny package
library("shiny")
# Run the diveRsity app.
# Make sure server.R and ui.R are in the working directory.
runApp(getwd())
When this code is run the default web browser should open with the following appearance.
The app can be closed by typing 'Ctrl + C' into the R console or pressing 'ESC'