Skip to content

Commit

Permalink
vignette fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Jan 8, 2018
1 parent 555422b commit c219ccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/shinyjs-usage.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ 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}`r ''`
```{r, echo=FALSE}
shiny::addResourcePath("shinyjs", system.file("srcjs", package = "shinyjs"))
```
```{r, context="server"}`r ''`
```{r, context="server"}
shinyjs::useShinyjs(html = TRUE)
```
<script src="shinyjs/inject.js"></script>
Expand Down

0 comments on commit c219ccb

Please sign in to comment.