Overview: These materials are for our November 11 Biostatistics, Genetics, and Genomics meeting. They constitute some notable highlights from a series of talks given by Dr. Martin Morgan as part of his Intermediate R Software Development short course. The image captures and example code below were prepared primarily by Mr. Ziqiang Chen, based upon the materials provided by Dr. Morgan in his course.
Setting up a GitHub account: https://github.com/ . Create a new project called ‘Knees’.
Create a new library in Rstudio:
Enable Git version control in Rstudio and connect to GitHub:
The Stick Person Code that we will use for our example library:
Add this function and two others to our R library:
Make sure to make some modfications for the ‘Knees’ package!
Document and Install and the Package:
Commit the changes locally:
Push the changes:
Run the code on the command line:
Now, setup the infrastructure for the RShiny App by creating a inst/sticky directory and adding these files:
Install the library and Run the Shiny App!
If you wish to skip all of the above, and just load Ziqiang’s version of the library:
library(devtools) install_github("ziqiangc/Knees") library(Knees) sticky()
Some Shiny RStudio Video tutorials (there are many to be found – thanks to Ziqiang Chen, for the links)
1. A (official) RStudio tutorial: http://shiny.rstudio.com/tutorial/
2. A comprehensive playlist of shiny tutorials: https://www.youtube.com/watch?v=_0ORRJqctHE&list=PL6wLL_RojB5xNOhe2OTSd-DPkMLVY9DfB