mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-31 09:48:38 -05:00
Slight changes to two links to R-manual, for consistency
- Most links were to .../R-manual/R-devel/... but two were to .../R-manual/R-patched/...; changed the R-patched ones to R-devel, for consistency. - Changed "this article on [R startup]" to have the "this article on" included in the underlined bit; seemed a bit more clear.
This commit is contained in:
@@ -10,7 +10,7 @@ Start by deciding the kind of values your output component is going to receive f
|
||||
|
||||
Whatever value the user's R code returns is going to need to somehow be turned into a JSON-compatible value (Shiny uses [RJSONIO](http://cran.r-project.org/web/packages/RJSONIO/index.html) to do the conversion). If the user's code is naturally going to return something RJSONIO-compatible – like a character vector, a data frame, or even a list that contains atomic vectors – then you can just direct the user to use a function on the server. However, if the output needs to undergo some other kind of transformation, then you'll need to write a wrapper function that your users will use instead (analogous to `renderPlot` or `renderTable`).
|
||||
|
||||
For example, if the user wants to output [time series objects](http://stat.ethz.ch/R-manual/R-patched/library/stats/html/ts.html) then you might create a `renderTimeSeries` function that knows how to translate `ts` objects to a simple list or data frame:
|
||||
For example, if the user wants to output [time series objects](http://stat.ethz.ch/R-manual/R-devel/library/stats/html/ts.html) then you might create a `renderTimeSeries` function that knows how to translate `ts` objects to a simple list or data frame:
|
||||
|
||||
|
||||
{% highlight r %}
|
||||
|
||||
@@ -66,7 +66,7 @@ Alternatively, you can specify the [recover](http://stat.ethz.ch/R-manual/R-deve
|
||||
options(error = recover)
|
||||
{% endhighlight %}
|
||||
|
||||
If you want to set the error option automatically for every R session, you can do this in your .Rprofile file as described in this article on [R Startup](http://stat.ethz.ch/R-manual/R-patched/library/base/html/Startup.html).
|
||||
If you want to set the error option automatically for every R session, you can do this in your .Rprofile file as described in [this article on R Startup](http://stat.ethz.ch/R-manual/R-devel/library/base/html/Startup.html).
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user