Winston Chang
9af2775539
Fix absolutePath to correctly handle absolute paths
2018-06-21 15:48:54 -05:00
Winston Chang
ae5deae6e9
Use output name in cache key
2018-06-21 14:55:30 -05:00
Winston Chang
61c2126498
Add diskCache function, and app- and session-level caches
2018-06-21 14:44:09 -05:00
Winston Chang
583ad036f7
Streamline renderCachedPlot API
2018-06-19 16:00:49 -05:00
Winston Chang
ac92bf98d4
WIP
2018-06-18 16:25:36 -05:00
Winston Chang
fd90ff7ff7
Use DiskCache class
2018-06-18 16:25:36 -05:00
Winston Chang
d06dbbe5db
Change cacheResetEventExpr to cacheResetExpr
2018-06-18 16:25:36 -05:00
Winston Chang
bffc4995d7
Rename normalizePath2 to absolutePath
2018-06-18 16:25:36 -05:00
Winston Chang
4b8b406bed
Add sizeGrowthRatio function
2018-06-18 16:25:36 -05:00
Winston Chang
5641153272
renderCachedPlot: pass ... args
2018-06-18 16:25:36 -05:00
Winston Chang
08c6c7781f
Rename cacheClearExpr to cacheResetEventExpr
2018-06-18 16:25:36 -05:00
Winston Chang
ad2ad391a7
Isolate user code
2018-06-18 16:25:36 -05:00
Winston Chang
caac88be0d
Don't re-run user code when only dimensions change
2018-06-18 16:25:36 -05:00
Winston Chang
10660aa373
Rename cacheInvalidationExpr to cacheClearExpr
2018-06-18 16:25:36 -05:00
Winston Chang
55f14576f0
Remove createCachedPlot function
2018-06-18 16:25:36 -05:00
Winston Chang
4dca94ac99
Code reorganization
2018-06-18 16:25:36 -05:00
Winston Chang
14779d3d27
Only invalidate plot when fitted dimensions change
2018-06-18 16:25:36 -05:00
Winston Chang
66d1e710b5
Allow renderCachedPlot to take a directory for scope
2018-06-18 16:25:36 -05:00
Winston Chang
12ae3c17e9
Allow onStop to take a NULL session
2018-06-18 16:25:35 -05:00
Winston Chang
36e4da0709
Add app/session scoping for renderCachedPlot
2018-06-18 16:25:35 -05:00
Winston Chang
91631cb081
Note bug fix in R
2018-06-18 16:25:35 -05:00
Winston Chang
224f082e1f
Implement cache invalidation
2018-06-18 16:25:35 -05:00
Winston Chang
76b239a6ea
Convert renderCachedPlot to take expr and cacheKeyExpr
2018-06-18 16:25:35 -05:00
Winston Chang
cb476b510d
Initial implementation of renderCachedPlot
2018-06-18 16:25:35 -05:00
Winston Chang
334f233968
Move plot caching code into separate file
2018-06-18 16:25:35 -05:00
Winston Chang
e1f21250b9
Rename plotCache to createCachedPlot
2018-06-18 16:25:35 -05:00
Winston Chang
8d087e4f20
Get output info and auto-size plot cache images
2018-06-18 16:25:35 -05:00
Winston Chang
9e35e8c947
Allow user code to pass width/height/pixelratio
2018-06-18 16:25:35 -05:00
Winston Chang
f98faef024
Document cache scoping and minor code cleanup
2018-06-18 16:25:35 -05:00
Winston Chang
0f9346ead5
Add different scoping levels for plotCache
2018-06-18 16:25:35 -05:00
Winston Chang
fc8118c694
First implementation of plotCache
2018-06-18 16:25:35 -05:00
Barret Schloerke
375a7e7e5c
respect existing class values and add tests
2018-06-11 10:31:49 -05:00
Barret Schloerke
7a1aecb1a4
varSelectInput doc tweaks
2018-06-08 10:59:45 -04:00
Barret Schloerke
b3690e8680
add bullets in details for output return value (update corresponding example)
2018-06-08 10:51:37 -04:00
Barret Schloerke
2081dda6fc
merged master -> varSelectInput
2018-06-07 16:46:31 -04:00
Barret Schloerke
6529529cdb
add new input 'varSelectInput()' and input binding 'shiny.symbol' and 'shiny.symbolList'
2018-06-07 16:10:01 -04:00
Tim Mastny
3a2a3f21d4
Improve optgroup documentation per #1864 ( #2084 )
...
* improves optgroup documentation per #1864
* change PR number in NEWS.md
* change addresses to addressed
2018-06-07 12:09:45 -05:00
Winston Chang
2880391620
runApp: add support for IPv6 addresses
2018-05-25 16:19:51 -04:00
Joe Cheng
062dc771aa
Fix #2061 : Tests failing on Windows due to rounding errors
2018-05-16 14:44:34 -07:00
Joe Cheng
9dd4302fe9
Fix #2037 : With enableBookmarking="url", clientData is not available when observers are first run
...
Also fixed reactiveTimer firing even while async tasks are active
2018-04-25 10:54:00 -07:00
Barbara Borges Ribeiro
2260459422
brought observeEvent/eventReactive documentation up to date
2018-04-24 17:44:54 +01:00
Joe Cheng
d5754515a6
Remove "experimental feature" tag from renderUI
2018-04-23 17:05:08 -07:00
Winston Chang
5a5294cc44
Set default reactive domain when executing flushedCallbacks. Fixes #1975
2018-04-21 11:46:50 -05:00
Joe Cheng
ffe883ab72
Merge pull request #2022 from rstudio/joe/bugfix/timer-leak
...
Fix #2021 : Memory leak with reactiveTimer and invalidateLater
2018-04-19 14:16:35 -07:00
Winston Chang
07b223dcb0
Fix plot coordmap for devel version of ggplot2. Closes #2016
2018-04-19 11:40:26 -05:00
Joe Cheng
f1e27b6ffb
Fix #1922 : Warning: partial match of 'y' to 'yintercept'
2018-04-19 10:00:24 -05:00
Joe Cheng
389463aea5
Merge branch 'joe/feature/undedupe-inputs'
2018-04-18 19:33:37 -07:00
Joe Cheng
c556cf1e69
Fix #2021 : Memory leak with reactiveTimer and invalidateLater
2018-04-18 12:30:14 -07:00
Joe Cheng
cef1f3c7ee
withReactiveDomain now acts as a promise domain
...
Without this change, async handlers won't return any
value for getDefaultReactiveDomain().
library(shiny)
library(promises)
ui <- fluidPage(
p("This app tests if async handlers have reactive domains. You'll get a yes/no answer below."),
h3(
"Does it work?",
textOutput("answer", inline = TRUE)
)
)
server <- function(input, output, session) {
output$answer <- renderText({
promise_resolve(TRUE) %...>% {
if (!is.null(getDefaultReactiveDomain()))
"Yes!"
else
"No :("
}
})
}
shinyApp(ui, server)
2018-04-16 20:51:46 -05:00
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