-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial for rna.wlu.edu users
This quick tutorial is designed for users who already have RStudio accounts on rna.wlu.edu. If you need an account just ask!
This simulation is an application written on top of the Shiny server framework. RNA server is setup to allow R users to deploy Shiny applications right from their home directory.
To do this:
- After logging into rna/r, click on the
filestab and navigate to the root of your home directory by clicking theHomelink. - If you don't see a folder named
ShinyAppscreate one by clickingNew Folder. - Any subfolders you create here which contain Shiny application files (
ui.Randserver.R) will be automatically deployed to:http://rna.wlu.edu/shiny/users/[yourname]/[appname]
For example, if your username is joe and your application folder within ShinyApps is named my-app, your application will found at http://rna.wlu.edu/shiny/users/joe/my-app/ (at present, the trailing / is essential; this will be fixed in the near future).
Here's how you can get a fresh copy of this simulation app to play around with; for this example we'll deploy our app to a subfolder named myModel:
- From the main menu select
ToolsandShell. - In the shell enter:
git clone https://github.com/whitwort/bindingModel.git ~/ShinyApps/myModel
From the file tab navigate to ShinyApps -> myModel. This folder contains all of the code needed for the web user interface (ui.R), the backend R server (server.R) and the simulated model (model.R).
The code in model.R is designed to be easy to understand if you're familiar with R and easy to change to make a new app powered by a different model. If you need to add or tweak interface elements or visualizations you'll have to modify server.R and ui.R.
A excellent tutorial on the Shiny framework can be found here: http://rstudio.github.com/shiny/tutorial/.