Skip to content

Commit

Permalink
Fixed CRAN test error
Browse files Browse the repository at this point in the history
  • Loading branch information
BartJanvanRossum committed Mar 18, 2024
1 parent e028eba commit 268e8c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Description: Analysis of multi environment data of plant breeding experiments
License: GPL
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Roxygen: list(markdown = TRUE)
Depends: R (>= 3.3)
Imports:
Expand Down
6 changes: 2 additions & 4 deletions tests/testthat/test-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,11 @@ test_that("megaEnv plot gives correct output types", {
})

test_that("option colorGenoBy in megaEnv plot functions correctly", {
expect_warning(p0 <- plot(geMegaEnv))
expect_warning(p <- plot(geMegaEnv, colorGenoBy = "family"),
"One should be cautious with the interpretation")
## New guide-box panel added.
layout0 <- p0[[1]]$layout
layout <- p[[1]]$layout
expect_equal(setdiff(layout[["name"]], layout0[["name"]]), "guide-box")
gbRight <- p$pred$grobs[[22]]
expect_equal(gbRight$layout[["name"]], c("guides", "legend.box.background"))
})

## varComp
Expand Down

0 comments on commit 268e8c1

Please sign in to comment.