R version 4.4.0 alpha (2024-04-04 r86334 ucrt) 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. > library(testthat) > library(styler) > test_check("styler") # checks multiple files, in parallel Starting 2 test processes [ FAIL 0 | WARN 0 | SKIP 25 | PASS 535 ] ══ Skipped tests (25) ══════════════════════════════════════════════════════════ • DiagrammeR cannot be loaded (3): 'test-create_tree.R:2:3', 'test-create_tree.R:13:3', 'test-relocate_eq_assign.R:3:3' • On CRAN (21): 'test-cache-clean-up.R:2:3', 'test-cache-high-level-api.R:3:3', 'test-cache-high-level-api.R:29:3', 'test-cache-high-level-api.R:40:3', 'test-cache-high-level-api.R:60:3', 'test-cache-high-level-api.R:74:3', 'test-cache-high-level-api.R:91:3', 'test-cache-high-level-api.R:99:3', 'test-cache-high-level-api.R:139:3', 'test-cache-high-level-api.R:152:3', 'test-cache-with-r-cache.R:32:3', 'test-helpers.R:3:3', 'test-helpers.R:14:3', 'test-public_api-1.R:108:9', 'test-roundtrip.R:13:3', 'test-roundtrip.R:19:3', 'test-public_api-3.R:164:3', 'test-utils.R:9:3', 'test-zzz.R:3:3', 'tests-cache-require-serial.R:22:3', 'tests-cache-require-serial.R:33:3' • Running in parallel (1): 'test-cache-clean-up.R:15:3' [ FAIL 0 | WARN 0 | SKIP 25 | PASS 535 ] > > # 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" ── 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" ── 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:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Skipped tests (5) ─────────────────────────────────────────────────────────── • On CRAN (5): 'test-cache-high-level-api.R:29:3', 'test-cache-high-level-api.R:40:3', 'test-cache-high-level-api.R:99:3', 'test-cache-high-level-api.R:139:3', 'test-cache-high-level-api.R:152:3' [ 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" ── Skipped tests (1) ─────────────────────────────────────────────────────────── • On CRAN (1): 'tests-cache-require-serial.R:33:3' [ FAIL 1 | WARN 0 | SKIP 1 | PASS 0 ] > > proc.time() user system elapsed 3.68 0.29 52.92