diff --git a/vignettes/shinyjs-usage.Rmd b/vignettes/shinyjs-usage.Rmd index adf9dc5..d57c5b4 100644 --- a/vignettes/shinyjs-usage.Rmd +++ b/vignettes/shinyjs-usage.Rmd @@ -142,15 +142,15 @@ If the Rmd file makes use of [Tabbed Sections](http://rmarkdown.rstudio.com/html If you're using the [`shiny_prerendered` Rmd format](http://rmarkdown.rstudio.com/authoring_shiny_prerendered.html), you need to include the following code in the beginning of your Rmd file, just after the YAML header: - - ```{r, echo=FALSE} - shiny::addResourcePath("shinyjs", system.file("srcjs", package = "shinyjs")) - ``` - ```{r, context="server"} - shinyjs::useShinyjs(html = TRUE) - ``` - - +```` +```{r, echo=FALSE}`r ''` +shiny::addResourcePath("shinyjs", system.file("srcjs", package = "shinyjs")) +``` +```{r, context="server"}`r ''` +shinyjs::useShinyjs(html = TRUE) +``` + +````

Using shinyjs when the user interface is built using an HTML file/template