1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 08:32:04 +02:00

(v1.4.0.9062) unit test fix

This commit is contained in:
2021-01-04 14:46:17 +01:00
parent a7ea4c9d2f
commit 1563dcd1aa
13 changed files with 53 additions and 56 deletions

View File

@ -108,9 +108,6 @@ 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 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)),
failure_message = paste0("Function ", pkg, "::", fn, "() does not exist anymore"))