add a note about the shiny version requirement

This commit is contained in:
Yihui Xie
2013-10-22 12:28:14 -05:00
parent 00fa782c27
commit d8d2fe4b9d

View File

@@ -9,8 +9,11 @@ demonstrates HTML tables using the jQuery library
[DataTables](http://datatables.net). To run the example type:
{% highlight r %}
library(shiny)
runGitHub("shiny-examples", "rstudio", subdir = "12_datatables")
# this requires shiny >= 0.8 (not released on CRAN yet)
if (packageVersion('shiny') > '0.7') {
library(shiny)
runGitHub("shiny-examples", "rstudio", subdir = "12_datatables")
}
{% endhighlight %}
The basic usage is to create an output element in the UI using