* using log directory ‘/Users/ripley/R/packages/tests-devel/medmod.Rcheck’ * using R Under development (unstable) (2022-03-30 r82032) * using platform: aarch64-apple-darwin21.4.0 (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘medmod/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘medmod’ version ‘1.0.0’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘medmod’ can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... NOTE Namespaces in Imports field not imported from: ‘R6’ ‘ggplot2’ ‘lavaan’ All declared Imports should be used. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking LazyData ... NOTE 'LazyData' is specified without a 'data' directory * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(medmod) > > test_check("medmod") [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error (testmed.R:11:5): mediation works ───────────────────────────────────── Error in `loadNamespace(x)`: there is no package called 'fastmap' Backtrace: ▆ 1. ├─medmod::med(data, dep = "Y", pred = "X", med = "M", paths = TRUE) at testmed.R:11:4 2. │ └─medResults$new(options = options) 3. │ └─medmod initialize(...) 4. │ └─jmvcore::Table$new(...) 5. │ └─jmvcore initialize(...) 6. │ ├─base::do.call(self$addColumn, column) 7. │ └─jmvcore ``(name = "effect", title = "Effect", type = "text") 8. │ └─Column$new(...) 9. │ └─jmvcore initialize(...) 10. │ └─options$translate(title) 11. │ └─jmvcore:::createTranslator(private$.package, private$.lang) 12. │ └─Translator$new(langDef) 13. │ └─jmvcore initialize(...) 14. └─base::loadNamespace(x) 15. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 16. └─base withOneRestart(expr, restarts[[1L]]) 17. └─base doWithOneRestart(return(expr), restart) ── Error (testmod.R:12:5): moderation works ──────────────────────────────────── Error in `loadNamespace(x)`: there is no package called 'fastmap' Backtrace: ▆ 1. ├─medmod::mod(data, dep = "Y", pred = "X", mod = "M", simpleSlopeEst = TRUE) at testmod.R:12:4 2. │ └─modResults$new(options = options) 3. │ └─medmod initialize(...) 4. │ └─jmvcore::Table$new(...) 5. │ └─jmvcore initialize(...) 6. │ ├─base::do.call(self$addColumn, column) 7. │ └─jmvcore ``(name = "term", title = "", type = "text") 8. │ └─Column$new(...) 9. │ └─jmvcore initialize(...) 10. │ └─options$translate(title) 11. │ └─jmvcore:::createTranslator(private$.package, private$.lang) 12. │ └─Translator$new(langDef) 13. │ └─jmvcore initialize(...) 14. └─base::loadNamespace(x) 15. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 16. └─base withOneRestart(expr, restarts[[1L]]) 17. └─base doWithOneRestart(return(expr), restart) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 2 NOTEs See ‘/Users/ripley/R/packages/tests-devel/medmod.Rcheck/00check.log’ for details. 17.91 real 13.63 user 3.32 sys