trestletech
7317a8304f
Only load top-level R files in R/
...
Ignores nested directories to better follow R package conventions. We want to align well so that this structure is portable to golem.
2019-08-12 15:03:50 -05:00
trestletech
5ea9d70fb4
Require capitalized R/ dir.
2019-08-12 14:59:16 -05:00
trestletech
37569a291b
Fix options test
2019-08-08 14:48:19 -05:00
trestletech
7fe973145d
Test ui/server/app/global sourcing.
2019-08-08 11:44:01 -05:00
trestletech
4be6bbc681
Load helpers into isolated environment
...
And scaffold out the tests.
2019-08-06 10:49:38 -05:00
trestletech
cfc0ff9cc7
Fix expectations.
2019-08-06 09:10:18 -05:00
trestletech
b4c6ba6962
Add dynamically-generated case-sensitive test.
2019-08-06 09:05:02 -05:00
trestletech
5d95c7a9cb
Load helpers in R/ on app startup
...
No support yet for case-sensitive file systems when loading the dir.
2019-08-05 17:25:14 -05:00
Alan Dipert
1a8b36f06d
selectInput: improve factor handling ( #2524 )
...
* selectInput: handle factor choices, fixes #2515
* Handle complex vectors
* Improve tests
* New item
* Update selectInput() docs to mention factors
* Un-S3-ify listify
* Bracketify the if/else
* Moar Brackets
* Fix travis: we hope
* Use existing asNamedVector function
* Better implementation of asNamedVector
* Clarify comments
2019-07-15 14:51:13 -05:00
Winston Chang
25ccc8a77a
Merge pull request #2484 from rstudio/weakref
...
Use weakrefs for reactive value to reactive expression dependencies
2019-07-03 20:49:33 -05:00
Jeff Allen
f51b5421f2
Add sep argument to renderText ( #2497 )
...
* Add sep argument to renderText
Closes #2469
* Add link to PR
* Regenerate docs
2019-06-14 16:26:28 -05:00
trestletech
396f170738
Bundle deprecated reactive functions into a single file.
2019-06-14 14:20:31 -05:00
Winston Chang
c90c4f3673
Suppress stack traces in tests
2019-06-14 10:59:45 -05:00
Winston Chang
41758858cf
Fix react logging for reactiveValues
2019-06-14 10:58:50 -05:00
Winston Chang
9e133e0ecc
More memory leak tests
2019-06-11 20:21:16 -05:00
Winston Chang
c4e7099229
Reactive expressions keep reference to context
2019-06-11 19:19:52 -05:00
Winston Chang
6310406430
Add tests for observer order
2019-06-04 16:07:04 -05:00
Winston Chang
d26d339f97
Ensure that dependents are sorted
2019-06-04 14:02:36 -05:00
Winston Chang
17afce6fa1
Merge pull request #2429 from rstudio/wch-fastmap
...
Use fastmap as backing store for Map class
2019-05-31 15:39:34 -05:00
Carson Sievert
57cc44f662
Coordmap info should retain discrete limits ( #2410 )
...
* ggplot2 input brushes should retain discrete range mapping, and be imposed in brushedPoints(), closes #1433
* simplify logic and reduce required storage
* get nearPoints() working as well, cleanup
* only remember scale range if ggplot is facet with a free discrete axis
* Use the scale limits (before the range) since the former is specified, that's what is actually shown on the plot
also, introduce within_brush() helper to consistently handle missing values produced by asNumber()
* also use scale limits in older versions of ggplot2
* DRY
* discrete_mapping -> discrete_limits; better comments
* update test expectation
* a couple unit tests
* update comment to reflect new coordmap data structure
* use unlink() not rm()
* add some tests for specifying scale limits and labels
* Use get_limits() if available
* update news
* better name and comment for new asNumber() argument
2019-05-14 16:34:00 -05:00
Winston Chang
7bc0a0ca39
Fix tests that assumed names in a specific order
2019-05-14 10:41:06 -05:00
Winston Chang
555ede03ed
Convert ReactiveValues$.values to use Map
2019-05-08 20:33:52 -05:00
Joe Cheng
87d1db1f2b
Fix test
2019-02-11 10:02:40 -08:00
Joe Cheng
d73c91d4a7
Add unit tests for shared secret check
2019-02-04 14:19:02 -08:00
Barret Schloerke
f2775f2c1d
update rLog$msg output tests
2018-12-14 16:18:20 -05:00
Barret Schloerke
aa1eb0410c
add force option to retrieving reactive info
2018-12-14 14:10:34 -05:00
Barret Schloerke
0f13056aa2
fix rLog$reset to work as an installed package. added a dummy context reactId (different from noReactId)
2018-12-14 12:05:22 -05:00
Barret Schloerke
beecf60db7
use rLog$reset() instead of initializeReactlog() due to changing global binding error
2018-12-13 17:04:12 -05:00
Barret Schloerke
160a2013bc
fix broken test
2018-12-13 16:52:44 -05:00
Barret Schloerke
cf28d7e470
init testing for msg logging
2018-12-13 13:26:42 -05:00
Winston Chang
a60301810f
Update coordmap tests
2018-08-10 19:42:11 -05:00
Joe Cheng
c01abdb6a9
Merge branch 'master' into plot-cache
2018-07-26 15:52:11 -07:00
Winston Chang
86ea023e2e
Update caches from code review feedback
2018-07-19 14:33:53 -05:00
Winston Chang
958ab85297
Add exec_missing parameter
2018-07-12 10:55:26 -05:00
Winston Chang
d1f20a9c73
Add 'missing' parameter to get()
2018-06-29 13:23:47 -05:00
Winston Chang
fe6ad235ac
Add sentinel value cache miss
2018-06-28 23:58:55 -05:00
Winston Chang
9af2775539
Fix absolutePath to correctly handle absolute paths
2018-06-21 15:48:54 -05:00
Barret Schloerke
ff3434f77e
add a R test to make sure shiny.js {{ VERSION }} was replaced
2018-06-20 12:53:07 -04:00
Barret Schloerke
375a7e7e5c
respect existing class values and add tests
2018-06-11 10:31:49 -05:00
Barret Schloerke
4749f46a4f
add shiny.symbol and shiny.symbolList tests
2018-06-07 16:10:47 -04:00
Joe Cheng
31c4e0fdfe
Add test to demonstrate vectorized unscheduling
2018-04-19 12:52:30 -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
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
Joe Cheng
c11a8ea24b
Fix tests
2018-03-27 15:35:29 -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
Winston Chang
fe3f351a2d
Avoid rounding errors from pretty(). Fixes #1006
2018-02-27 10:50:36 -06:00
Joe Cheng
ce4ed20c69
Fix remaining failing tests
2018-02-09 11:12:46 -08:00
Joe Cheng
54353e0e1f
Fix coordmap unit tests
2018-02-09 11:12:46 -08:00
Joe Cheng
20b82fbf77
Cleanup R CMD check
2018-02-09 11:12:45 -08:00