Quick tutorial on GUI design in RStudio
Using Shiny for GUI design with R
2015-03-13
Today, I will show how can we use R to design GUI. This is a question raised by my colleague, Dr Huang. He came to my office today and asked about my new blog. I was super excited to explain why I open this blog and what I am doing here. He looks a bit convinced by my suggestion that our master students should learn R and use R more often in their research. In the end, he asked me, “can we use R to design GUI as we can do in Matlab?” To be honest, I have no answer at that moment. But, do now. It is the shiny package. I will learn and show you how to do it here.
Shiny Package
Shiny is an R package that makes it easy to build interactive web applications (apps) straight from R. As always, I will fist install the package: install.packages("shiny"). Then I will load it into the library.
library(shiny)
The Shiny package has eleven built-in examples that each demonstrate how Shiny works. Each example is a self-contained Shiny app.