Joe Cheng
9a35b01e23
Fix observeEvent stack trace stripping ( #4163 )
...
* Fix observeEvent stack trace stripping
* Add unit test
* Add deep stack version of unit test
2024-12-09 20:50:53 -08:00
Carson Sievert
56ab530d87
v1.9.0 release candidate ( #4105 )
...
* Start v1.9.0 release candidate
* Check-in revdep results
* `yarn build` (GitHub Actions)
* Sync package version (GitHub Actions)
* `yarn build` (GitHub Actions)
* ran revdepcheck on cloud. 2 errors reported. Both seem like false positives
* Fix R CMD check note about Rd links targets missing package anchors
---------
Co-authored-by: cpsievert <cpsievert@users.noreply.github.com >
Co-authored-by: Barret Schloerke <barret@posit.co >
Co-authored-by: schloerke <schloerke@users.noreply.github.com >
2024-07-29 17:10:38 -05:00
avoidaway
c73e1a21b8
chore: remove repetitive words ( #3999 )
...
Signed-off-by: avoidaway <cmoman@126.com >
2024-03-21 11:30:24 -05:00
Garrick Aden-Buie
3c4a908773
feat: Add onUnhandledError() ( #3993 )
...
* feat: Add `onUnhandledError()`
* docs(NEWS): Update previous news item
* docs(onUnhandledError): Add example
* docs(MockShinySession): Fix unhandledErrorCallbacks private field docs
* feat: Handle non-fatal unhandled errors, too
* docs(onUnhandledError): Add more detailed documentation
* `devtools::document()` (GitHub Actions)
* docs: Small edits
2024-03-14 10:21:59 -04:00
Garrick Aden-Buie
b38a630224
Clarify what's ignored by ignoreNULL ( #3827 )
...
Co-authored-by: gadenbuie <gadenbuie@users.noreply.github.com >
2023-06-30 10:44:43 -04:00
Winston Chang
38337a926f
Ensure that reactiveValues keys and values are sorted ( #3774 )
2023-01-25 11:10:05 -06:00
Joe Cheng
634b1c7c3c
Don't kill the session when a debounced/throttled reactive expr errors ( #3624 )
...
* Don't kill the session when a debounced/throttled reactive expr errors
Fixes #3581
* Update NEWS with PR number
Co-authored-by: Carson Sievert <cpsievert1@gmail.com >
2022-06-27 10:57:10 -05:00
Lionel Henry
313ae9044d
Handle chained errors ( #3567 )
...
Closes tidyverse/dplyr#5552
Part of #3566
2022-01-10 18:33:14 -08:00
Barret Schloerke
1b3ed88bd1
exprToFunction() and installExprFunction() support quosures (#3472 )
...
Co-authored-by: Barret Schloerke <schloerke@gmail.com >
Co-authored-by: Winston Chang <winston@stdout.org >
Co-authored-by: Carson Sievert <cpsievert1@gmail.com >
Co-authored-by: Joe Cheng <joe@rstudio.com >
2021-08-02 22:09:19 -04:00
Barret Schloerke
8b74338b0f
Add sustainEnvAndQuoted(). Remove getQuosure() ( #3468 )
...
Documentation to come in a later PR
Co-authored-by: Barret Schloerke <schloerke@gmail.com >
Co-authored-by: Winston Chang <winston@stdout.org >
2021-07-26 17:54:37 -04:00
Winston Chang
8a57dbf608
Rename get_quosure to getQuosure
2021-07-06 12:36:45 -05:00
Hadley Wickham
e29d92c5ff
Allow trailing commas in more places ( #3328 )
...
* Allow trailing commas in more places
I grepped for list(...) and replaced with rlang::list2(...). This also enables !!! which is generally not important for Shiny because it automatically splices lists/tagLists, but I doubt it will affect any existing code.
* update news; no need to rlang::
* missed one
* Update NEWS.md
Co-authored-by: Hadley Wickham <h.wickham@gmail.com >
Co-authored-by: Carson Sievert <cpsievert1@gmail.com >
2021-03-23 14:24:21 -05:00
Shinya Uryu
d165cc6e8e
Typo ( #3283 )
2021-02-05 08:43:13 -06:00
Winston Chang
6584e1f960
Recommend using bindEvent() ( #3277 )
2021-02-01 18:11:30 -06:00
Barret Schloerke
f4fc13fc2f
Add devmode() features ( #3174 )
...
Co-authored-by: Barret Schloerke <schloerke@gmail.com >
Co-authored-by: Winston Chang <winston@stdout.org >
2020-12-18 14:31:31 -05:00
Hadley Wickham
f169792e59
Experiment with error message ( #3007 )
2020-12-04 14:20:30 -06:00
Winston Chang
e44a9b1ded
Replace %OR% with %||% from rlang ( #3172 )
2020-12-02 12:14:07 -06:00
Winston Chang
1bad0553b7
Fix labels for eventReactive
2020-11-20 15:46:18 -06:00
Winston Chang
ac0b723bb0
bindEvent(): alter observers in place and fix labels
2020-11-20 14:51:35 -06:00
Winston Chang
39454a6c09
Use enquos0, inject, and zap_srcref from rlang ( #3157 )
2020-11-20 11:07:06 -06:00
Winston Chang
6df3ce4b19
Rename blast() to inject()
2020-11-13 15:13:33 -06:00
Winston Chang
04386f1a5e
reactivePoll: store environment
2020-11-13 13:11:35 -06:00
Winston Chang
9c915e52ca
Add get_quosure function
2020-11-12 23:45:23 -06:00
Winston Chang
67a776a39a
Don’t automatically unwrap quosures
2020-11-12 16:57:05 -06:00
Winston Chang
8bfb59875f
Temporarily disable deprecatedEnvQuotedMessage
2020-11-09 13:10:51 -06:00
Winston Chang
43b7c41c4f
Rename withCache and withEvent to bindCache and bindEvent
2020-11-08 21:47:11 -06:00
Winston Chang
eff4a1f23e
Add cache hint to reactive expressions
2020-11-06 12:41:57 -06:00
Winston Chang
8940f14dde
Fixes for R CMD check
2020-11-03 14:59:08 -06:00
Winston Chang
d411da3114
Fix variable names
2020-11-03 13:04:11 -06:00
Winston Chang
902bfb8628
Convert observeEvent and eventReactive to use withEvent
2020-11-03 13:02:57 -06:00
Winston Chang
b25d72f698
Streamline reactive() and observe()
2020-11-03 13:02:57 -06:00
Winston Chang
b0f77d6591
Store original function as attribute on wrapper
2020-11-03 13:02:57 -06:00
Winston Chang
f2885dafd2
Add functions for extracting parts out of reactive expressions
2020-11-03 13:02:57 -06:00
Winston Chang
4ce62034ce
Convert reactive() and observe() to accept quosures
2020-11-03 13:01:27 -06:00
Winston Chang
a99f11fb10
Extract reactive label code into exprToLabel()
2020-10-22 15:58:50 -05:00
Winston Chang
a1ff765235
Merge pull request #3055 from rstudio/joe/bugfix/freeze-invalidation
2020-10-07 17:36:16 -05:00
Hadley Wickham
a30ba9226d
Implement reactiveConsole() ( #3092 )
...
* Implement reactiveConsole(). Fixes #2518
* Also includes makeReactiveBinding tweaks
* use `reactiveConsole()` to provide a nicer example
* simplified the implementation using `reactiveVal()`
* remove from documentation indexes since you probably don't want to be promoting this function
2020-10-07 15:37:14 -05:00
Joe Cheng
ea1e307a51
Preserve existing (CRAN) behavior of freezeReactiveVal/freezeReactiveValues(non-input), but warn
...
We don't think anyone is using the freeze functions in the ways
that we are deprecating, if so they should contact us via the
link provided.
If it turns out nobody complains, we can remove the problematic
functions. If people complain, then we'll find out what they're
using them for and we can fix them properly.
2020-10-06 14:28:49 -07:00
Joe Cheng
17bc1e2e06
Force invalidation on freeze
2020-10-06 14:28:49 -07:00
Barret Schloerke
23fde95f9e
Add class 'function' to reactive and reactiveVal objects ( #2793 )
...
* add the class 'function' to a reactive object
* add the class 'function' to a reactiveVal object
* add test to make sure the reactive and reactiveVal objects are functions
* Add news item
2020-03-16 10:42:28 -04:00
Winston Chang
6bc2f18bbf
Timer functions always use ms, and better names. Closes #2725
2019-12-13 15:30:47 -06:00
Winston Chang
6fcb925e34
Merge pull request #2652 from ahmohamed/master
...
Fix debounce() behavior when r() throws an error
2019-10-21 16:54:59 -05:00
trestletech
bac35e8f1b
Revert "PR feedback. Broke tests because of dependency on session, though, so might revert."
...
This reverts commit a003c4da85 .
2019-10-18 13:50:30 -05:00
trestletech
a003c4da85
PR feedback. Broke tests because of dependency on session, though, so might revert.
2019-10-17 14:01:58 -05:00
trestletech
d3667dfc77
Attempt to get the current time from the session, if available.
2019-10-15 15:32:59 -05:00
trestletech
bff207008f
Best-effort task scheduling through the session
...
Currently a no-op change, as the session just passes through to the global scheduleTask implementation. But this allows us to mock the method for testing.
2019-10-15 14:24:10 -05:00
trestletech
ed739f95ff
Revert "Best-effort task scheduling through the session"
...
This reverts commit bb4de1336c .
2019-10-15 14:22:31 -05:00
trestletech
bb4de1336c
Best-effort task scheduling through the session
...
Currently a no-op change, as the session just passes through to the global scheduleTask implementation. But this allows us to mock the method for testing.
2019-10-15 14:21:44 -05:00
Ahmed Mohamed
26ba9bf94a
Fix debounce() behavior when r() throws an error
2019-10-04 11:58:22 +10:00
Winston Chang
29c90ba163
Code review fixes
2019-09-05 16:12:07 -07:00