Skip to content

Commit 37a58a8

Browse files
committed
Fix images in htmlwidgets vignette
1 parent 2602d41 commit 37a58a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vignettes/intro_htmlwidgets.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ shiny::runApp()
9191

9292
Alternatively, in RStudio, you can open `app.R` and press `Ctrl-Shift-Enter` (`Cmd-Shift-Enter` on macOS). You should see something like the following appear in the Viewer pane:
9393

94-
```{r echo=FALSE}
95-
knitr::include_graphics('./widget_app.jpg')
96-
```
94+
![](./widget_app.jpg)
9795

9896
## Authoring a React binding
9997

@@ -272,6 +270,8 @@ shinyApp(ui, server)
272270

273271
Now, when you run `shiny::runApp()`, you should see your react-based htmlwidget rendering in **shiny** app!
274272

273+
![](./widget_app_improved.jpg)
274+
275275
## Further learning
276276

277277
This tutorial walked you through the steps taken you create an R interface to the react-sparklines library. The full example package is accessible at <https://github.com/react-R/sparklines-example>. Our intention is keep creating example packages under the <https://github.com/react-R> organization, so head there if you'd like to see other examples of interfacing with React.

0 commit comments

Comments
 (0)