Joe Cheng
e5d1fa1ea4
Fix #2008 : Allow eventReactive and observeEvent eventExprs to be async ( #2014 )
...
* Fix #2008 : Allow eventReactive and observeEvent eventExprs to be async
This makes it possible to monitor e.g. async reactives.
In the process of fixing this, also discovered that observers don't
filter out shiny.silent.error (i.e. req(FALSE)) when they come back
from async operations. For example, this will kill the current
Shiny session instead of being ignored:
observe({
promise_resolve(TRUE) %...>%
{req(FALSE)}
})
This issue is also fixed in this commit.
* Enable deep stack trace by default, now that it's fast
2018-04-16 20:50:28 -05:00
Joe Cheng
b7b696630f
Fix #2003 : Long stack traces are truncated
2018-04-16 17:16:12 -05:00
Joe Cheng
84aba546bc
Fix #2000 : Implicit calls to xxxOutput not working inside modules ( #2010 )
...
* Fix #2000 : Implicit calls to xxxOutput not working inside modules
* Add comment, update NEWS
* Credits in NEWS
2018-04-16 16:57:13 -05:00
Winston Chang
741236df56
Merge pull request #2011 from rstudio/joe/feature/output-null
...
Fix #1989 : Allow outputs to be removed by assigning NULL to them
2018-04-12 16:29:48 -05:00
Winston Chang
e3584f0a61
Merge pull request #2013 from rstudio/joe/bugfix/render-plot-args
...
renderPlot's ... args were being dropped
2018-04-12 16:27:46 -05:00
Joe Cheng
432482c5a7
renderPlot's ... args were being dropped
2018-04-12 11:57:32 -07:00
Joe Cheng
323ad46bba
Implement #1989 : Allow outputs to be removed by assigning NULL to them
2018-04-11 18:40:32 -07:00
Alan Dipert
ace0fe1802
Merge pull request #2005 from rstudio/alan/bugfix/dndfix
...
Fix dragging and dropping in the presence of jQuery 3.0
2018-04-11 11:53:42 -07:00
Alan Dipert
36f244fece
Merge branch 'master' into alan/bugfix/dndfix
2018-04-11 11:52:23 -07:00
Joe Cheng
99e5ef99ec
Move some bullets around
2018-04-10 10:08:15 -07:00
Alan Dipert
d6d3ed5bbc
NEWS
2018-04-10 08:40:40 -07:00
Alan Dipert
49d09ecf30
Grunt
2018-04-10 08:30:46 -07:00
Alan Dipert
c529a03096
DnD: Fix in the presence of jQuery 3.0 (removed .size())
2018-04-10 08:29:03 -07:00
Winston Chang
cba7304ab9
Merge pull request #1996 from rstudio/fix-selectize
...
fix selectize capitalization (regression introduced by #1861 )
2018-04-05 11:58:20 -05:00
Barbara Borges Ribeiro
2d058b0519
move attribute setting to after choices is reassigned (this was getting lost after the changes in #1861 ).
2018-04-04 19:55:15 +01:00
Barbara Borges Ribeiro
eed9231884
fix selectize capitalization (regression introduced by #1861 )
2018-04-04 14:00:44 +01:00
Joe Cheng
5c84eaf2a5
Merge pull request #1990 from rstudio/joe/feature/better-stacks
...
Better stack traces
2018-03-27 19:31:51 -07:00
Joe Cheng
2ef7226be0
Use seq_along instead of 1:length(x)
...
It behaves when length(x) == 0
2018-03-27 18:30:24 -07:00
Joe Cheng
e5d1c61cdf
Merge branch 'master' into joe/feature/better-stacks
2018-03-27 18:04:05 -07:00
Joe Cheng
e635055ab8
Update NEWS
2018-03-27 18:02:41 -07:00
Joe Cheng
d8d4e3b262
Don't error when entire stack trace is stripped/pruned
2018-03-27 16:35:45 -07:00
Joe Cheng
8f29543479
Use qualified name for utils::tail (R CMD check NOTE)
2018-03-27 16:19:28 -07:00
Joe Cheng
c11a8ea24b
Fix tests
2018-03-27 15:35:29 -07:00
Joe Cheng
86646d7faa
Make srcref offsetting optional
2018-03-27 15:35:06 -07:00
Joe Cheng
6e44915e08
Merge pull request #1984 from rstudio/joe/feature/faster-deep-stacks
...
Lazily format stack traces
2018-03-27 10:31:00 -07:00
Joe Cheng
f8b99cf4e9
Add deprecation docs
2018-03-26 11:38:12 -07:00
Joe Cheng
0e7d6ff192
Refactoring and deprecation in conditions.R
...
- Refactor printError so a working printStackTrace falls out
- Deprecate extractStackTrace and formatStackTrace, see if anyone uses them
2018-03-26 11:35:50 -07:00
Barbara Borges Ribeiro
66501dac97
Add new autoclose = TRUE param to dateInput() and dateRangeInput ( #1987 )
...
* Add new `autoclose = TRUE` param to both dateInput() and dateRangeInput()
* added NEWS item
2018-03-23 09:40:19 -07:00
Joe Cheng
195907b2ec
printError implements lobstr::cst analysis and deep-stack-aware frame suppression
2018-03-22 12:22:46 -07:00
Joe Cheng
be11b44864
First steps to improved stack traces
...
- Adds functions we will need for tracking ..stacktraceon/off..
across deep stacks
- Adds functions we will need for pruning according to lobstr::cst
logic
These functions are not yet integrated, that will occur in a
separate commit.
2018-03-20 16:45:47 -07:00
Joe Cheng
bc7cd21c13
Update NEWS.md
2018-03-20 16:39:52 -07:00
Carson Sievert
0555cbdd28
relay offsetWidth/offsetHeight of htmlwidgets to clientData ( #1981 )
...
Addresses #1980
2018-03-20 16:37:43 -07:00
Joe Cheng
97498451bb
Lazily format stack traces
...
With deep stack traces enabled, whenever then() is called, we need
to grab the current stack, just in case a downstream callback throws
an error and we need to form a deep stack trace.
Previously, we were calling formatStackTrace at the time that we
grab the current stack (i.e. no error has happened yet) because I
wasn't sure whether holding a reference to sys.calls() for a long
time was a good idea from a garbage collection perspective; would it
prevent the stack frame environments from being collected? But the
answer is no, sys.calls() is just calls, which can be confirmed with
.Internal(inspect(sys.calls()).
By deferring the formatStackTrace call to when we actually need to
print the stack trace, we save ourselves a ton of work--it turns out
it's quite expensive to format the stack traces, much more expensive
than sys.calls() alone.
2018-03-20 12:35:17 -07:00
Joe Cheng
2e0d9b5475
Bump httpuv dependency version
2018-03-18 19:07:43 -07:00
Barbara Borges Ribeiro
62395f3103
Improve error handling when addResourcePath() fails (especially for runtime: shiny_prerendered documents) ( #1968 )
...
* A copy of yihui's PR for rmarkdown (https://github.com/rstudio/rmarkdown/pull/1171/ ) to avoid to error "Error in normalizePath: path[1]="": No such file or directory" when running any tutorial
* first try
* limited the scope of the `tryCatch` wrapper to the one important line that needed it; added news item
2018-03-16 15:36:12 -07:00
Winston Chang
6b31cd6aee
Merge pull request #1965 from rstudio/joe/bugfix/plot-dim-error
...
Fix #1964 : renderPlot cache breaks when width/height throw
2018-03-01 11:12:56 -06:00
Joe Cheng
e67a8ba369
Fix #1964 : renderPlot cache breaks when width/height throw
...
Fixed by moving the isolate(getDims()) call into the (effectively)
try/catch that does a non-isolated getDims() if an error occurs
2018-02-28 15:40:55 -08:00
Joe Cheng
133d301925
Merge pull request #1961 from rstudio/fix-date-sliders-bookmarking
...
Fix URL-encoded bookmarking with date/date-time sliders
2018-02-28 14:26:50 -08:00
Joe Cheng
17c40a5d1d
Merge pull request #1960 from rstudio/slider-formatting
...
Don't show commas after decimal mark in sliderInput
2018-02-28 13:01:20 -08:00
Winston Chang
042211e5f6
Grunt
2018-02-28 14:34:09 -06:00
Winston Chang
d12830d700
sliderInput: don't show commas after decimal
2018-02-28 14:33:42 -06:00
Winston Chang
b411c70280
Fix URL-encoded bookmarking with date/date-time sliders
2018-02-27 20:42:11 -06:00
Winston Chang
2bc22cc7d5
Merge pull request #1955 from rstudio/update-slider
...
Update ion.rangeSlider to 2.2.0
2018-02-27 13:21:09 -06:00
Joe Cheng
b4c189c89b
Merge pull request #1956 from rstudio/fix-slider-rounding
...
Avoid rounding errors in sliderInput
2018-02-27 10:55:11 -08:00
Winston Chang
fe3f351a2d
Avoid rounding errors from pretty(). Fixes #1006
2018-02-27 10:50:36 -06:00
Winston Chang
076be9cba7
Remove unused keyboard_step parameter
...
keyboard_step was removed in ion.rangeSlider 2.2.0.
2018-02-26 15:57:30 -06:00
Winston Chang
f28dcd85fb
Update to ion.rangeSlider 2.2.0
2018-02-26 15:57:30 -06:00
Joe Cheng
8e0f17c9d7
Merge pull request #1954 from rstudio/fix-bookmark-restore
...
Look for restore context associated with session
2018-02-26 09:25:33 -08:00
Winston Chang
d73817a0db
Look for restore context associated with session. Fixes #1948
2018-02-26 10:55:38 -06:00
Joe Cheng
11874db825
Remove background-thread branch from httpuv remote
2018-02-16 15:41:32 -08:00