Skip to content

Conversation

@ilyaZar
Copy link
Contributor

@ilyaZar ilyaZar commented Mar 28, 2023

Fix #3

Add several name-watchers for on()

  • provides the "or" case
  • provide an expression generator generate_watch_expr() that parses "name" arg to a list of reactives
  • each element of this list is put into observeEvent
  • if length(name) == 1, the default (previouis) behaviour is used

Restyle with grkstyler.

see edb8c82

@ilyaZar
Copy link
Contributor Author

ilyaZar commented Jul 4, 2023

edit PR:

ilyaZar added 3 commits July 6, 2023 08:25
- provides the "or" case for the components of the 'name' argument
- implementation: add an expression generator 'generate_watch_expr()':
    - if 'name' is a vector its elements are parsed to a list of reactives and put inside obeserveEvent()
    - if length(name) == 1, the default (previouis) behaviour is used
- style: run styler::style_file("R/funs.R", style = grkstyle::grk_style_transformer)
    - updated doc-string
    - change stop_if to stop_if_not (see changes to NAMESPACE as well)
    - add entry to roxygen which seems to be (?) necessary to make a link to a function in a different package via shiny::observeEvent
- adding the session argument in view of ColinFay#17 and ColinFay#18
- remove redundant whitespace
ilyaZar added 2 commits July 6, 2023 11:45
To make the error message more useful:
-> inisde stop_if_not(), the exact events/flags that have not been initiated are
printed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using more than one 'name' argument for on()?

1 participant