Skip to content

Commit

Permalink
give up - there's no way to properly include a valid rmd chunk that l…
Browse files Browse the repository at this point in the history
…ooks correct in rmd source without rendering it on travis
  • Loading branch information
daattali committed Jan 8, 2018
1 parent c219ccb commit 361f0fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions vignettes/shinyjs-usage.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
<script src="shinyjs/inject.js"></script>

````
```{r, echo=FALSE}`r ''`
shiny::addResourcePath("shinyjs", system.file("srcjs", package = "shinyjs"))
```
```{r, context="server"}`r ''`
shinyjs::useShinyjs(html = TRUE)
```
<script src="shinyjs/inject.js"></script>
````

<h2 id="usage-html">Using shinyjs when the user interface is built using an HTML file/template</h2>

Expand Down

0 comments on commit 361f0fc

Please sign in to comment.