Skip to content

Commit

Permalink
typo (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-morrison authored Oct 16, 2024
1 parent 88332ea commit 426b690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scaling-modules.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ datasetInput <- function(id, filter = NULL) {

The module server is also simple: we just use `get()` to retrieve the dataset with its name.
There's one new idea here: like a function and unlike a regular `server()`, this module server returns a value.
Here we take advantage of the usual rule that last expression processed in the function becomes the return value[^scaling-modules-2].
Here we take advantage of the usual rule that the last expression processed in the function becomes the return value[^scaling-modules-2].
This value should always be a reactive.

[^scaling-modules-2]: The tidyverse style guide, <https://style.tidyverse.org/functions.html#return>, recommends reserving `return()` only for cases where you are returning early.
Expand Down

0 comments on commit 426b690

Please sign in to comment.