R Under development (unstable) (2024-01-28 r85838 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ## This script is only run during R CMD check, so we can set an environment > ## variable that will only run tests during R CMD check (or `devtools::check()`) > ## and not during `devtools::test()`. > > ## Thus in the tests, we can request the NEXUS files that are stored in the > ## `inst/` folder, but during the checks, we test the files that have been > ## installed (using the `system.file()` function). > > library(testthat) > > Sys.setenv("R_CMD_CHECK" = "true") > > test_check("phylobase") Loading required package: phylobase [ FAIL 0 | WARN 2 | SKIP 0 | PASS 639 ] [ FAIL 0 | WARN 2 | SKIP 0 | PASS 639 ] > > proc.time() user system elapsed 8.35 0.50 8.85