Running ‘testthat.R’ [166s/181s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library(testthat)
  +   library(rtables)
  +   test_check("rtables", reporter = "check")
  + }
  Loading required package: formatters
  
  Attaching package: 'formatters'
  
  The following object is masked from 'package:base':
  
      %||%
  
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  
  Attaching package: 'rtables'
  
  The following object is masked from 'package:utils':
  
      str
  
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Saving _problems/test-default_split_funs-41.R
  Saving _problems/test-printing-252.R
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 1852 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-default_split_funs.R:35:3'): keep_split_levels(reorder) works correctly ──
  Error in `file(file, if (append) "a" else "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_silent(...) at test-default_split_funs.R:35:3
   2.   └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3.     └─testthat (local) .capture(...)
   4.       └─withr::with_output_sink(...)
   5.         └─withr:::set_output_sink(file = new, append = append, split = split)
   6.           └─withr:::output_sink(file = file, append = append, split = split)
   7.             └─base::sink(file = file, append = append, type = "output", split = split)
   8.               └─base::file(file, if (append) "a" else "w")
  ── Error ('test-printing.R:252:3'): alignment works ────────────────────────────
  Error in `pdf(tmppdf)`: cannot open file '/tmp/RtmpO3rB5j/file1da6206240d4d2.pdf'
  Backtrace:
      ▆
   1. ├─base::toString(aligntab) at test-printing.R:252:3
   2. └─rtables::toString(aligntab)
   3.   └─rtables (local) .local(x, ...)
   4.     ├─base::toString(...)
   5.     └─formatters::toString(...)
   6.       └─formatters (local) .local(x, ...)
   7.         └─formatters::open_font_dev(fontspec)
   8.           └─grDevices::pdf(tmppdf)
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 1852 ]
  Error:
  ! Test failures.
  Execution halted