Fix a few typos in the shiny tutorial

This commit is contained in:
Karl Broman
2013-10-09 20:40:21 -05:00
parent 23400f0620
commit fd68356c78
2 changed files with 4 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ The use of `renderText` and `renderPlot` to generate output (rather than just as
The server script assigned two output values: `output$caption` and `output$mpgPlot`. To update our user interface to display the output we need to add some elements to the main UI panel.
In the updated user-interface definition below you can see that we've added the caption as an h3 element and filled in it's value using the `textOutput` function, and also rendered the plot by calling the `plotOutput` function:
In the updated user-interface definition below you can see that we've added the caption as an h3 element and filled in its value using the `textOutput` function, and also rendered the plot by calling the `plotOutput` function:
#### ui.R

View File

@@ -2,9 +2,9 @@
## Run & Debug
Throughout the tutorial you've been calling `runApp` to run the example applications. This function starts the application and opens up your default web browser to view it. The call is blocking, meaning that it prevents traditional interaction with the console while the applciation is running.
Throughout the tutorial you've been calling `runApp` to run the example applications. This function starts the application and opens up your default web browser to view it. The call is blocking, meaning that it prevents traditional interaction with the console while the application is running.
To stop the application you simply interupt R -- you can do this by pressing the Escape key in all R front ends as well as by clicking the stop button if your R environment provides one.
To stop the application you simply interrupt R -- you can do this by pressing the Escape key in all R front ends as well as by clicking the stop button if your R environment provides one.
### Running in a Separate Process
@@ -59,7 +59,7 @@ You can also set the R "error" option to automatically enter the brows
options(error = browser)
{% endhighlight %}
Alternatively, you can specify the [recover](http://stat.ethz.ch/R-manual/R-devel/library/utils/html/recover.html) function as your error handler, which will print a list of the call stack and allow you to browse at any point in he stack:
Alternatively, you can specify the [recover](http://stat.ethz.ch/R-manual/R-devel/library/utils/html/recover.html) function as your error handler, which will print a list of the call stack and allow you to browse at any point in the stack:
{% highlight r %}
# Call the recover function when an error occurs