1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 19:01:51 +02:00

(v1.4.0.9061) ab class selector fix

This commit is contained in:
2021-01-04 14:16:09 +01:00
parent 8d117820b8
commit a7ea4c9d2f
14 changed files with 18 additions and 16 deletions

View File

@ -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)),