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
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
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
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
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
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
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
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
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
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
d73817a0db
Look for restore context associated with session. Fixes #1948
2018-02-26 10:55:38 -06:00
Joe Cheng
b1dc3dfca1
Restore label to plotObj reactive
2018-02-09 11:12:46 -08:00
Joe Cheng
d44df7f860
Stack traces were being lost inside hybrid_chain
2018-02-09 11:12:46 -08:00
Joe Cheng
b8df1f29c4
Remove unused function
2018-02-09 11:12:46 -08:00
Joe Cheng
881370f284
Remove extraneous comments
2018-02-09 11:12:46 -08:00
Joe Cheng
35d1747bc3
Don't allow invalidation from a child process
2018-02-09 11:12:46 -08:00
Joe Cheng
3c694d9bd9
More robust process identification (thanks @HenrikBengtsson)
2018-02-09 11:12:46 -08:00
Joe Cheng
6a78e9df77
Detect (probably inadvertent) attempts to inherit reactive contexts across processes
...
Example (we want this to fail):
library(shiny)
library(future)
plan(multicore)
r <- reactiveVal(TRUE)
isolate({
f <- future({
r()
})
value(f)
})
2018-02-09 11:12:45 -08:00
Joe Cheng
d35c6002a6
Respect pixelratio (retina) when redrawing cached images
2018-02-09 11:12:45 -08:00
Joe Cheng
f23fc3beaa
Plots were not respecting pixel ratio (retina)
2018-02-09 11:12:45 -08:00
Joe Cheng
03b1d45d7e
Make deep stack traces opt-in; fix imports
2018-02-09 11:12:45 -08:00
Joe Cheng
f00aa94d7e
Suspend session during async download operation
2018-02-09 11:12:45 -08:00
Joe Cheng
6a1f9677a5
Support async downloadHandler content functions
...
If a downloadHandler content function returns a promise (or future)
then Shiny will wait for the promise to resolve before serving up
the file download.
2018-02-09 11:12:45 -08:00
Joe Cheng
ae364adfc2
wip2
2018-02-09 11:12:45 -08:00
Joe Cheng
c14a382b90
wip
2018-02-09 11:12:45 -08:00
Joe Cheng
39d3784b9b
async support for renderDataTable
2018-02-09 11:12:45 -08:00
Joe Cheng
7d29df58f1
Support same-tick execution for synchronous outputs
2018-02-09 11:12:45 -08:00
Joe Cheng
05aa413683
promises::finally() was missing namespace prefix
2018-02-09 11:12:45 -08:00
Joe Cheng
132f90f45b
Support promise domain wrapSync; fix renderPrint visibility
...
Also introduce promise_chain and hybrid_chain, for assembling chains of
operations without involving magrittr-style operators
2018-02-09 11:12:45 -08:00
Joe Cheng
2602dc15b0
Changes to flush cycle to support async
...
- Moved (in|de)crementBusyCount calls out of Context and into Observer
- decrementBusyCount is (effectively) deferred for async observers until
the async operation is complete
- invalidateLater didn't force(session), almost certainly was buggy
- invalidateLater, reactiveTimer, and manageInputs all now use a new
session$cycleStartAction, which delays their effect until observers
(including async ones) are done executing
2018-02-09 11:12:45 -08:00
Joe Cheng
2314f63424
Fix broken .shiny__stdout mechanism
2018-02-09 11:12:45 -08:00
Joe Cheng
f7e4702685
Restore writing of _n_flushReact and _x_flushReact to stdout
2018-02-09 11:12:45 -08:00
Joe Cheng
71682512c4
Refactor flush cycle
2018-02-09 11:12:45 -08:00
Joe Cheng
20b82fbf77
Cleanup R CMD check
2018-02-09 11:12:45 -08:00
Joe Cheng
47bef0f1b0
Remove extraneous debugging code
2018-02-09 11:12:45 -08:00