Running ‘testthat.R’ [17s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > pkg_name <- "teal.widgets"
  > library(pkg_name, character.only = TRUE)
  > if (!is.null(requireNamespace("testthat"))) {
  +   library(testthat)
  +   test_check(pkg_name)
  + } else {
  +   message("Please install testthat to run tests")
  + }
  Loading required namespace: testthat
  Loading required package: shiny
  Saving _problems/test-verbatim_popup_ui-156.R
  [ FAIL 1 | WARN 1 | SKIP 29 | PASS 258 ]
  
  ══ Skipped tests (29) ══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-optionalSliderInputValMinMax_ui.R:38:1',
    'test-white_small_well.R:7:1'
  • testing depth 3 is below current testing specification 5 (27):
    'test-draggable_buckets.R:16:5', 'test-draggable_buckets.R:44:5',
    'test-draggable_buckets.R:75:5', 'test-get_dt_rows_ui.R:48:5',
    'test-optionalSelectInput_ui.R:95:5',
    'test-optionalSliderInputValMinMax_ui.R:16:5',
    'test-plot_with_settings_ui.R:106:5', 'test-plot_with_settings_ui.R:128:5',
    'test-plot_with_settings_ui.R:190:5', 'test-plot_with_settings_ui.R:231:5',
    'test-plot_with_settings_ui.R:270:5', 'test-plot_with_settings_ui.R:314:5',
    'test-plot_with_settings_ui.R:338:5', 'test-plot_with_settings_ui.R:359:3',
    'test-plot_with_settings_ui.R:413:3', 'test-plot_with_settings_ui.R:436:3',
    'test-plot_with_settings_ui.R:481:3', 'test-table_with_settings_ui.R:79:5',
    'test-table_with_settings_ui.R:103:5', 'test-table_with_settings_ui.R:169:5',
    'test-table_with_settings_ui.R:197:5', 'test-table_with_settings_ui.R:235:5',
    'test-table_with_settings_ui.R:303:5', 'test-table_with_settings_ui.R:329:5',
    'test-table_with_settings_ui.R:354:3', 'test-verbatim_popup_ui.R:33:5',
    'test-verbatim_popup_ui.R:92:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-verbatim_popup_ui.R:156:3'): snapshot test for verbatim_popup_ui ──
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(verbatim_popup_ui("STH", "STH2")) at test-verbatim_popup_ui.R:156:3
   2.   └─testthat:::expect_snapshot_(...)
   3.     ├─testthat:::with_is_snapshotting(...)
   4.     └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   5.       └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
   6.         └─evaluate:::watchout(...)
   7.           └─evaluate:::local_persistent_sink_connection(debug, frame)
   8.             └─base::file("", "w+b")
  
  [ FAIL 1 | WARN 1 | SKIP 29 | PASS 258 ]
  Error:
  ! Test failures.
  Execution halted