From d8d2fe4b9d09e5ab4c035ed5fd7f0a1af7557d0a Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Tue, 22 Oct 2013 12:28:14 -0500 Subject: [PATCH] add a note about the shiny version requirement --- _includes/tutorial/datatables.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_includes/tutorial/datatables.md b/_includes/tutorial/datatables.md index 95e3ce80d..08ced4cd3 100644 --- a/_includes/tutorial/datatables.md +++ b/_includes/tutorial/datatables.md @@ -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