From 03e60360cfdf047858c0071218de36321aa2a25b Mon Sep 17 00:00:00 2001 From: JJ Allaire Date: Tue, 24 Jul 2012 08:31:29 -0700 Subject: [PATCH] initial tutorial content --- tutorial/index.html | 148 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 128 insertions(+), 20 deletions(-) diff --git a/tutorial/index.html b/tutorial/index.html index f1d0bf25c..1100e2428 100644 --- a/tutorial/index.html +++ b/tutorial/index.html @@ -2,9 +2,8 @@ - Shiny + Tutorial: Building 'shiny' Web Applications with R - + + + + + + - + -
+
+ -

Hello Shiny

-

First checkin of bootstrap template

+
+
+ +
+ +
+
+ +

You can install shiny directly from github using the devtools package. In order to install shiny you'll also need to be configured to build R packages from source. To install devtools and verify that you can build packages from source:

-
+
install.packages("devtools")
+library(devtools)
+has_devel()
+
+ +

If the has_devel function produces an error then you'll need to install some additional components required to build packages from source:

+ +
    +
  • Windows – Install the appropriate Rtools binaries for your version of R.
  • +
  • MacOS X – Install the Command Line Tools for Xcode.
  • +
  • Debian/Ubuntu – sudo apt-get install r-base-dev
  • +
+ +

Next, you need to install a modified version of the websockets package from github:

+ +
install_github("R-websockets", "jcheng5")
+
+ +

Finally, you can install the shiny package from github:

+ +
install_github("shiny", "rstudio")
+
+ +

To verify that Shiny is installed correctly you can run an example application:

+ +
library(shiny)
+runExample("01_hello")
+
+ +

If everything is installed and working correctly a browser will open and navigate to the running application.

+ + + +
+ +
+ Hello +
+ + +
+ Reactive +
+ + + +
+
+ +
+ + +