Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [14s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(gridify)
  > 
  > test_check("gridify")
  Saving _problems/test_gridifyfunc-21.R
  Loading required namespace: gridGraphics
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 296 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • !getOption("RUNSNAPSHOTTESTS", FALSE) is TRUE (5): 'test_print.R:47:3',
    'test_print.R:72:3', 'test_print.R:123:3', 'test_set_cell.R:188:3',
    'test_show.R:186:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_gridifyfunc.R:21:3'): gridify accepts ggplot2 or grob for the object argument ──
  Expected `result <- gridify(object = flextable::flextable(mtcars), layout = simple_layout())` not to throw any errors.
  Actually got a <simpleError> with message:
    attempt access index 14/14 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_gridifyfunc.R:21:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─gridify::gridify(object = flextable::flextable(mtcars), layout = simple_layout())
    8.   └─flextable::gen_grob(object)
    9.     └─flextable:::get_grid_data(x, autowidths, wrapping)
   10.       ├─...[]
   11.       └─data.table:::`[.data.table`(...)
  
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 296 ]
  Error:
  ! Test failures.
  Execution halted