R Under development (unstable) (2023-05-23 r84461 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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. > library(testthat) > library(styler) > test_check("styler") # checks multiple files, in parallel Starting 2 test processes [ FAIL 0 | WARN 2 | SKIP 25 | PASS 537 ] ══ Skipped tests ═══════════════════════════════════════════════════════════════ • DiagrammeR cannot be loaded (3) • On CRAN (22) [ FAIL 0 | WARN 2 | SKIP 25 | PASS 537 ] > > # checks file one by one, not parallel > Sys.setenv(STYLER_TEST_IS_TRULY_PARALLEL = FALSE) > test_file("testthat/test-cache-high-level-api.R") In tests/testthat/helpers-devel-options: Deactivated cache. ══ Testing test-cache-high-level-api.R ═════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 1 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 2 | PASS 0 ] [ FAIL 2 | WARN 0 | SKIP 2 | PASS 0 ] [ FAIL 3 | WARN 0 | SKIP 2 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 2 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 3 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 4 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 5 | PASS 0 ] [ FAIL 5 | WARN 0 | SKIP 5 | PASS 0 ] [ FAIL 6 | WARN 0 | SKIP 5 | PASS 0 ] [ FAIL 7 | WARN 0 | SKIP 5 | PASS 0 ] [ FAIL 8 | WARN 0 | SKIP 5 | PASS 0 ] ── Error ('test-cache-high-level-api.R:2:3'): activated cache brings speedup on style_file() API ── Error in `local_test_setup()`: could not find function "local_test_setup" ── Skip ('test-cache-high-level-api.R:29:3'): activated cache brings speedup on style_text() API on character vector ── Reason: On CRAN ── Skip ('test-cache-high-level-api.R:40:3'): activated cache brings speedup on style_text() API on character scalar ── Reason: On CRAN ── Error ('test-cache-high-level-api.R:54:3'): trailing line breaks are ignored for caching ── Error in `local_test_setup(cache = TRUE)`: could not find function "local_test_setup" ── Error ('test-cache-high-level-api.R:68:3'): trailing line breaks are ignored for caching in one scalar ── Error in `local_test_setup(cache = TRUE)`: could not find function "local_test_setup" ── Error ('test-cache-high-level-api.R:82:3'): trailing line breaks are ignored for caching in one scalar ── Error in `local_test_setup(cache = TRUE)`: could not find function "local_test_setup" ── Skip ('test-cache-high-level-api.R:99:3'): speedup higher when cached roxygen example code is multiple expressions ── Reason: On CRAN ── Skip ('test-cache-high-level-api.R:139:3'): no speedup when tranformer changes ── Reason: On CRAN ── Skip ('test-cache-high-level-api.R:152:3'): unactivated cache does not bring speedup ── Reason: On CRAN ── Error ('test-cache-high-level-api.R:162:3'): avoid deleting comments #584 (see commit messages) ── Error in `local_test_setup()`: could not find function "local_test_setup" ── Error ('test-cache-high-level-api.R:180:3'): avoid removing roxygen mask (see commit messages in #584) ── Error in `local_test_setup()`: could not find function "local_test_setup" ── Error ('test-cache-high-level-api.R:203:3'): partial caching of multiple expressions on one line works ── Error in `local_test_setup()`: could not find function "local_test_setup" ── Error ('test-cache-high-level-api.R:220:3'): cache is deactivated at end of caching related testthat file ── Error in `cache_is_activated()`: could not find function "cache_is_activated" Backtrace: 1. testthat::expect_false(cache_is_activated()) at test-cache-high-level-api.R:220:2 2. testthat::quasi_label(enquo(object), label, arg = "object") 3. rlang::eval_bare(expr, quo_get_env(quo)) [ FAIL 8 | WARN 0 | SKIP 5 | PASS 0 ] > test_file("testthat/tests-cache-require-serial.R") In tests/testthat/helpers-devel-options: Deactivated cache. ══ Testing tests-cache-require-serial.R ════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 1 | PASS 0 ] ── Error ('tests-cache-require-serial.R:2:3'): top-level test: Caches top-level expressions efficiently on style_text() ── Error in `local_test_setup(cache = TRUE)`: could not find function "local_test_setup" ── Skip ('tests-cache-require-serial.R:33:3'): roxygen code examples are written to cache as whole expressions bring speedgain ── Reason: On CRAN [ FAIL 1 | WARN 0 | SKIP 1 | PASS 0 ] > > proc.time() user system elapsed 5.09 0.57 63.79