mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 04:42:22 +02:00
(v1.4.0.9061) ab class selector fix
This commit is contained in:
@ -108,8 +108,8 @@ test_that("imports work", {
|
||||
for (i in seq_len(length(import_functions))) {
|
||||
fn <- names(import_functions)[i]
|
||||
pkg <- unname(import_functions[i])
|
||||
# package should be in Suggests field of DESCRIPTION
|
||||
expect(pkg %in% strsplit(packageDescription("AMR")$Suggests, ",\n")[[1]],
|
||||
# package should be in DESCRIPTION
|
||||
expect(pkg %in% gsub("[^A-Za-z]", "", readLines(file("DESCRIPTION"))),
|
||||
failure_message = paste0("Package ", pkg, " is not in Suggests field"))
|
||||
# function should exist in foreign pkg namespace
|
||||
expect(!is.null(import_fn(name = fn, pkg = pkg, error_on_fail = FALSE)),
|
||||
|
Reference in New Issue
Block a user