Skip to content

Commit 91587fd

Browse files
Merge branch 'master' of https://github.com/react-R/reactR
2 parents bd21d33 + c66756f commit 91587fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vignettes/intro_htmlwidgets.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ This should open up the `sparklines()` widget in your browser. If it does, congr
243243

244244
### Shiny integration
245245

246-
The scaffolding template already provides the glue you need to get your **reactR** widget to render in **shiny**. The two relevant functions are `renderSparklines()` and `sparklinesOutput()`. You shouldn't need to modify these functions — they should work out of the box. You will, however, want to modify the example **shiny** app in the `app.R` file:
246+
The scaffolding template already provides the glue you need to get your **reactR** widget to render in **Shiny**. The two relevant functions are `renderSparklines()` and `sparklinesOutput()`. You shouldn't need to modify these functions — they should work out of the box. You will, however, want to modify the example **Shiny** app in the `app.R` file:
247247

248248
```{r}
249249
library(shiny)
@@ -255,7 +255,7 @@ ui <- fluidPage(
255255
)
256256
257257
server <- function(input, output, session) {
258-
output$myWidget <- rendersparklines({
258+
output$myWidget <- renderSparklines({
259259
sparklines(
260260
data = rnorm(10),
261261
sparklinesLine(color = "#56b45d"),

0 commit comments

Comments
 (0)