Skip to content

Commit

Permalink
fix tests on R-devel 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Thieurmel committed Oct 5, 2021
1 parent 7802d8c commit 3f9f6f2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: manipulateWidget
Type: Package
Title: Add Even More Interactivity to Interactive Charts
Version: 0.11.0
Version: 0.11.1
Authors@R: c(
person("Veronique", "Bachelier", email = "veronique.bachelier@rte-france.com", role = c("aut", "cre")),
person("Jalal-Edine", "ZAWAM", role = "aut"),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<!-- Copyright © 2016 RTE Réseau de transport d’électricité --->

# manipulateWidget 0.11.1 (2021-10-05)

## Bug Fixes
* fix tests on R-devel 4.2

# manipulateWidget 0.11.0 (2020-03-21)

## New features
Expand Down
16 changes: 9 additions & 7 deletions inst/examples/example-reactive_values.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
require(manipulateWidget)
require(dygraphs)
mydata <- data.frame(
year = 2000+1:100,
series1 = rnorm(100),
series2 = rnorm(100),
series3 = rnorm(100)
)



ui <- fillPage(
fillRow(
Expand All @@ -14,12 +22,6 @@ ui <- fillPage(

Range = 2001
server <- function(input, output, session) {
mydata <- data.frame(
year = 2000+1:100,
series1 = rnorm(100),
series2 = rnorm(100),
series3 = rnorm(100)
)

c <- manipulateWidget(
{
Expand All @@ -29,7 +31,7 @@ server <- function(input, output, session) {
series = mwSharedValue(),
title = mwSharedValue(
{"init"}
), .runApp = FALSE, .showCompare = FALSE,
), .runApp = FALSE,
.compare = "range"
)

Expand Down
16 changes: 8 additions & 8 deletions tests/testthat/test-inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ test_input(mwPassword(), list("1", 1, NULL), list("1", "1", ""))
test_input(mwSelect(1:4), list(1, 2, 5, NULL), list(1, 2, 1, 1))
test_input(
mwSelect(1:4, multiple = TRUE),
list(1, 5, NULL, 3:5),
list(1, integer(0), integer(0), 3:4)
list(1, 5, 3:5),
list(1, integer(0), 3:4)
)
# Select where choices have distinct label and values
test_input(
Expand All @@ -34,8 +34,8 @@ test_input(
)
test_input(
mwSelect(list(a = 1, b = 2), multiple = TRUE),
list(1, 2, 5, NULL, 1:3),
list(1, 2, integer(0), integer(0), 1:2)
list(1, 2, 5, 1:3),
list(1, 2, integer(0), 1:2)
)

# Checkbox
Expand Down Expand Up @@ -84,13 +84,13 @@ test_input(
# Checkbox group
test_input(
mwCheckboxGroup(1:4),
list(1, 5, NULL, 3:5),
list(1, integer(0), integer(0), 3:4)
list(1, 5, 3:5),
list(1, integer(0), 3:4)
)
test_input(
mwCheckboxGroup(list(a = 1, b = 2)),
list(1, 2, 5, NULL, 1:3),
list(1, 2, integer(0), integer(0), 1:2)
list(1, 2, 5, 1:3),
list(1, 2, integer(0), 1:2)
)

# Groups of input
Expand Down

0 comments on commit 3f9f6f2

Please sign in to comment.