Skip to content

Commit ef0d38d

Browse files
authored
Update reactivity-motivation.Rmd with minor typo (#615)
1 parent 2fdd786 commit ef0d38d

3 files changed

+4
-4
lines changed

reactivity-motivation.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This is quite different from most R code, which typically deals with fairly stat
2626

2727
For Shiny apps to be maximally useful, we need reactive expressions and outputs to update if and only if their inputs change.
2828
We want outputs to stay in sync with inputs, while ensuring that we never do more work than necessary.
29-
To see why reactivity is so helpful here, we'll take a stab a solving a simple problem without reactivity.
29+
To see why reactivity is so helpful here, we'll take a stab at solving a simple problem without reactivity.
3030

3131
### Why can't you use variables?
3232

scaling-functions.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ This doesn't make testing or debugging any easier, but it does reduce duplicated
278278
We could of course add `session` to the arguments of the function:
279279

280280
```{r}
281-
switch_page <- function(i) {
282-
updateTabsetPanel(input = "wizard", selected = paste0("page_", i))
281+
switch_page <- function(i, session) {
282+
updateTabsetPanel(session = session, input = "wizard", selected = paste0("page_", i))
283283
}
284284
285285
server <- function(input, output, session) {

scaling-modules.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ The difference is largely superficial for this simple app, but `moduleServer()`
175175
Now that we have a complete app, let's circle back and talk about namespacing some more.
176176
The key idea that makes modules work is that the name of each control (i.e. its `id`) is now determined by two pieces:
177177

178-
- The first piece comes from the module **user**, the developer who calls `histogramServer()`.
178+
- The first piece comes from the module **user**, the developer who calls `histogramUI()`.
179179
- The second piece comes from the module **author**, the developer who wrote `histogramServer()`.
180180

181181
This two-part specification means that you, the module author, don't need to worry about clashing with other UI components created by the user.

0 commit comments

Comments
 (0)