Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(styler)
  > 
  > test_check("styler")
  In tests/testthat/helpers-devel-options: Deactivated cache.
  Styling  1  files:
   C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\styler\tmp\RtmpsLFyAl\file2ec41c2b1624.R i 
  --------------------------------------------------------------------------------
  Status	Count	Legend 
  v 	0	File unchanged.
  i 	1	File changed.
  x 	0	Styling threw an error.
  --------------------------------------------------------------------------------
  Please review the changes carefully!
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • DiagrammeR cannot be loaded (3)
  • On CRAN (8)
  • skip on R >= 3.2 because parsing probmes don't appear (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-cache-high-level-api.R:51:3): trailing line breaks are ignored for caching ──
  Error: To style roxygen code examples, you need to have the package `{roxygen2}` installed. To exclude them from styling, set `include_roxygen_examples = FALSE`.
  Backtrace:
      █
   1. ├─styler::style_text(text1) test-cache-high-level-api.R:51:2
   2. │ └─styler:::transformer(text)
   3. │   └─`%>%`(...)
   4. └─purrr::when(...)
   5.   └─base::eval(dots[[i]][[action]], env, env)
   6.     └─base::eval(dots[[i]][[action]], env, env)
   7.       └─styler:::parse_transform_serialize_roxygen(...)
  ── Error (test-cache-high-level-api.R:63:3): trailing line breaks are ignored for caching in one scalar ──
  Error: To style roxygen code examples, you need to have the package `{roxygen2}` installed. To exclude them from styling, set `include_roxygen_examples = FALSE`.
  Backtrace:
      █
   1. ├─styler::style_text(text1) test-cache-high-level-api.R:63:2
   2. │ └─styler:::transformer(text)
   3. │   └─`%>%`(...)
   4. └─purrr::when(...)
   5.   └─base::eval(dots[[i]][[action]], env, env)
   6.     └─base::eval(dots[[i]][[action]], env, env)
   7.       └─styler:::parse_transform_serialize_roxygen(...)
  ── Error (test-cache-high-level-api.R:78:3): trailing line breaks are ignored for caching in one scalar ──
  Error: To style roxygen code examples, you need to have the package `{roxygen2}` installed. To exclude them from styling, set `include_roxygen_examples = FALSE`.
  Backtrace:
      █
   1. ├─styler::style_text(text1) test-cache-high-level-api.R:78:2
   2. │ └─styler:::transformer(text)
   3. │   └─`%>%`(...)
   4. └─purrr::when(...)
   5.   └─base::eval(dots[[i]][[action]], env, env)
   6.     └─base::eval(dots[[i]][[action]], env, env)
   7.       └─styler:::parse_transform_serialize_roxygen(...)
  ── Error (test-cache-high-level-api.R:182:3): avoid removing roxygen mask (see commit messages in #584) ──
  Error: To style roxygen code examples, you need to have the package `{roxygen2}` installed. To exclude them from styling, set `include_roxygen_examples = FALSE`.
  Backtrace:
       █
    1. ├─testthat::expect_equal(as.character(style_text(text2)), text2) test-cache-high-level-api.R:182:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─styler::style_text(text2)
    5. │ └─styler:::transformer(text)
    6. │   └─`%>%`(...)
    7. └─purrr::when(...)
    8.   └─base::eval(dots[[i]][[action]], env, env)
    9.     └─base::eval(dots[[i]][[action]], env, env)
   10.       └─styler:::parse_transform_serialize_roxygen(...)
  ── Error (test-cache-interaction-roxygen-code-examples.R:14:3): roxzgen code examples are written to cache as both individual expressions and as whole text ──
  Error: To style roxygen code examples, you need to have the package `{roxygen2}` installed. To exclude them from styling, set `include_roxygen_examples = FALSE`.
  Backtrace:
      █
   1. ├─styler::style_text(text) test-cache-interaction-roxygen-code-examples.R:14:2
   2. │ └─styler:::transformer(text)
   3. │   └─`%>%`(...)
   4. └─purrr::when(...)
   5.   └─base::eval(dots[[i]][[action]], env, env)
   6.     └─base::eval(dots[[i]][[action]], env, env)
   7.       └─styler:::parse_transform_serialize_roxygen(...)
  ── Error (test-cache-with-r-cache.R:32:3): top-level test: Caches top-level expressions efficiently on style_text() ──
  Error: To style roxygen code examples, you need to have the package `{roxygen2}` installed. To exclude them from styling, set `include_roxygen_examples = FALSE`.
  Backtrace:
      █
   1. ├─base::system.time(text_styled <- as.character(style_text(text))) test-cache-with-r-cache.R:32:2
   2. ├─styler::style_text(text)
   3. │ └─styler:::transformer(text)
   4. │   └─`%>%`(...)
   5. └─purrr::when(...)
   6.   └─base::eval(dots[[i]][[action]], env, env)
   7.     └─base::eval(dots[[i]][[action]], env, env)
   8.       └─styler:::parse_transform_serialize_roxygen(...)
  ── Error (test-escaping.R:2:3): escaping of characters works ───────────────────
  Error: To style roxygen code examples, you need to have the package `{roxygen2}` installed. To exclude them from styling, set `include_roxygen_examples = FALSE`.
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-escaping.R:2:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─styler:::test_collection("escaping", "basic", transformer = style_text)
    7. │ └─purrr::pwalk(...)
    8. │   └─purrr::pmap(.l, .f, ...)
    9. │     └─styler:::.f(...)
   10. │       └─read_in %>% transformer(...) %>% unclass()
   11. ├─styler:::transformer(., ...)
   12. │ └─styler:::transformer(text)
   13. │   └─`%>%`(...)
   14. └─purrr::when(...)
   15.   └─base::eval(dots[[i]][[action]], env, env)
   16.     └─base::eval(dots[[i]][[action]], env, env)
   17.       └─styler:::parse_transform_serialize_roxygen(...)
  ── Error (test-roxygen-examples-complete.R:4:3): analogous to test-roxygen-examples-complete ──
  Error: To style roxygen code examples, you need to have the package `{roxygen2}` installed. To exclude them from styling, set `include_roxygen_examples = FALSE`.
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-roxygen-examples-complete.R:4:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─styler:::test_collection(...)
    7. │ └─purrr::pwalk(...)
    8. │   └─purrr::pmap(.l, .f, ...)
    9. │     └─styler:::.f(...)
   10. │       └─read_in %>% transformer(...) %>% unclass()
   11. ├─styler:::transformer(., ...)
   12. │ └─styler:::transformer(text)
   13. │   └─`%>%`(...)
   14. └─purrr::when(...)
   15.   └─base::eval(dots[[i]][[action]], env, env)
   16.     └─base::eval(dots[[i]][[action]], env, env)
   17.       └─styler:::parse_transform_serialize_roxygen(...)
  ── Error (test-roxygen-examples-parse.R:153:3): braces examples can be parsed ──
  Error: there is no package called 'roxygen2'
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-roxygen-examples-parse.R:153:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─styler:::parse_roxygen(...)
    5. │ └─styler:::emulate_rd(roxygen)
    6. │   └─`%>%`(...)
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base:::withOneRestart(expr, restarts[[1L]])
   10.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 9 | WARN 3 | SKIP 12 | PASS 453 ]
  Error: Test failures
  Execution halted