diff --git a/_includes/tutorial/hello-shiny.md b/_includes/tutorial/hello-shiny.md index 12c44cf9b..668ba4a98 100644 --- a/_includes/tutorial/hello-shiny.md +++ b/_includes/tutorial/hello-shiny.md @@ -7,8 +7,6 @@ The Hello Shiny example is a simple application that generates a random distribu > runExample("01_hello") -### Getting Familliar with Shiny - Shiny applications have two components: a user-interface definition and a server script. The source code for both of these components is listed below. In subsequent sections of the tutorial we'll break down all of the code in detail and explain the use of "reactive" functions for generating output. For starters though just try playing with the sample application and reviewing the source code to get an initial feel for things. Be sure to read the comments carefully as they explain in detail what the code is doing and why. diff --git a/_includes/tutorial/html-ui.md b/_includes/tutorial/html-ui.md index 74db6ce84..b43039020 100644 --- a/_includes/tutorial/html-ui.md +++ b/_includes/tutorial/html-ui.md @@ -8,7 +8,7 @@ The HTML UI application demonstrates defining a Shiny user-interface using a sta > runExample("08_html") -### Using HTML Directly +### Defining an HTML UI The previous examples in this tutorial used a ui.R file to build their user-interfaces. While this is fast and convenient way to build user-interfaces, some appliations will inevitably require more flexiblity. For this type of application, you can define your user-interface directly in HTML. In this case there is no ui.R file and the directory structure looks like this: diff --git a/_includes/tutorial/reactivity.md b/_includes/tutorial/reactivity.md index 8f009e0e4..23f43d15a 100644 --- a/_includes/tutorial/reactivity.md +++ b/_includes/tutorial/reactivity.md @@ -10,7 +10,7 @@ The Reactivity application is very similar to Hello Text but goes into much more The previous examples have given you a good idea of what the code for Shiny applications looks like. We've explained a bit about reactivity but mostly glossed over the finer details. Now before we look at more code we'll explore these concepts more deeply. -### What is Shiny Reactivity? +### What is Reactivity? The Shiny web framework is fundamentally about making it easy to wire up *input values* from a web page, making them easily available to you in R, and have the results of your R code be written as *output values* back out to the web page. @@ -40,8 +40,7 @@ It's also possible to create reactive functions directly (usually computed based The transormation of reactive values into outputs is then by assignments to the `output` object. Here is an example of an assignment to an output that depends on both the `datasetInput` reactive function we just defined as well as `input$obs`: -
 
-output$view <- reactiveTable(function() {
+
output$view <- reactiveTable(function() {
    head(datasetInput(), n = input$obs)
 })