Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix several typos in code and sentences #525

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
change running() to r$running
  • Loading branch information
youngroklee-ml committed Apr 16, 2022
commit 51e14f4fe04c19eb4a3f5bc343432cf4c4e5b10f
2 changes: 1 addition & 1 deletion reactivity-escaping.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ server <- function(input, output, session) {
}
```

Notice in this case we can't easily use `observeEvent()` because we perform different actions depending on whether `running()` is `TRUE` or `FALSE`.
Notice in this case we can't easily use `observeEvent()` because we perform different actions depending on whether `r$running` is `TRUE` or `FALSE`.
Since we can't use `observeEvent()`, we must use `isolate()` --- if we don't this observer would also take a reactive dependency on `n`, which it updates, so it would get stuck in an infinite loop.

Hopefully these examples start to give you a flavour of what programming with `reactiveValues()` and `observe()` feels like.
Expand Down