Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d3eca4

Browse files
authored
Fix for dev testthat (#1421)
Since skip functions now return NULL.
1 parent f4e02ca commit 0d3eca4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/testthat/helper-bs4_book.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# TODO: Replace if helper in testthat gets vectorised
2-
# https://github.com/r-lib/testthat/issues/1398
31
skip_if_bs4_book_deps_missing <- function() {
4-
check <- vapply(bs4_book_deps(), skip_if_not_installed, logical(1L), USE.NAMES = FALSE)
5-
invisible(check)
2+
lapply(bs4_book_deps(), skip_if_not_installed)
3+
invisible(TRUE)
64
}
75

86
local_bs4_book <- function(name = "book",

0 commit comments

Comments
 (0)