mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 15:41:56 +02:00
(v1.7.0) unit tests
This commit is contained in:
@ -102,7 +102,7 @@ for (i in seq_len(length(import_functions))) {
|
||||
fn <- names(import_functions)[i]
|
||||
pkg <- unname(import_functions[i])
|
||||
# function should exist in foreign pkg namespace
|
||||
if (pkg %in% rownames(installed.packages())) {
|
||||
if (AMR:::pkg_is_available(pkg, also_load = FALSE)) {
|
||||
tst <- !is.null(AMR:::import_fn(name = fn, pkg = pkg, error_on_fail = FALSE))
|
||||
expect_true(tst,
|
||||
info = ifelse(tst,
|
||||
|
Reference in New Issue
Block a user