Running ‘testthat.R’ [257s/388s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > pkg_name <- "teal"
  > library(pkg_name, character.only = TRUE)
  Loading required package: shiny
  Loading required package: teal.data
  Loading required package: teal.code
  Loading required package: teal.slice
  Registered S3 method overwritten by 'teal':
    method        from      
    c.teal_slices teal.slice
  
  You are using teal version 1.0.0
  
  Attaching package: 'teal'
  
  The following objects are masked from 'package:teal.slice':
  
      as.teal_slices, teal_slices
  
  > testthat::test_check(pkg_name)
  Saving _problems/test-teal_reporter-17.R
  Saving _problems/test-teal_reporter-38.R
  Saving _problems/test-teal_reporter-54.R
  Saving _problems/test-teal_reporter-81.R
  Saving _problems/test-teal_reporter-94.R
  Saving _problems/test-teal_reporter-103.R
  Saving _problems/test-teal_reporter-111.R
  [ FAIL 7 | WARN 1 | SKIP 52 | PASS 388 ]
  
  ══ Skipped tests (52) ══════════════════════════════════════════════════════════
  • need a fix in a .slicesGlobal (1): 'test-module_teal.R:1334:11'
  • testing depth 3 is below current testing specification 5 (48):
    'test-shinytest2-data_summary.R:2:3', 'test-shinytest2-data_summary.R:17:3',
    'test-shinytest2-data_summary.R:36:3', 'test-shinytest2-data_summary.R:55:3',
    'test-shinytest2-data_summary.R:80:3',
    'test-shinytest2-data_summary.R:118:3',
    'test-shinytest2-data_summary.R:133:3', 'test-shinytest2-decorators.R:5:3',
    'test-shinytest2-decorators.R:73:3', 'test-shinytest2-filter_manager.R:5:3',
    'test-shinytest2-filter_panel.R:5:3', 'test-shinytest2-filter_panel.R:32:3',
    'test-shinytest2-filter_panel.R:66:3', 'test-shinytest2-filter_panel.R:97:3',
    'test-shinytest2-init.R:5:3', 'test-shinytest2-init.R:16:3',
    'test-shinytest2-init.R:71:3', 'test-shinytest2-landing_popup.R:5:3',
    'test-shinytest2-landing_popup.R:23:3',
    'test-shinytest2-landing_popup.R:41:3',
    'test-shinytest2-landing_popup.R:65:5',
    'test-shinytest2-landing_popup.R:131:3',
    'test-shinytest2-module_bookmark_manager.R:7:5',
    'test-shinytest2-module_bookmark_manager.R:18:5',
    'test-shinytest2-module_bookmark_manager.R:29:5',
    'test-shinytest2-module_bookmark_manager.R:41:3',
    'test-shinytest2-modules.R:5:3', 'test-shinytest2-modules.R:44:3',
    'test-shinytest2-modules.R:60:3', 'test-shinytest2-modules.R:74:3',
    'test-shinytest2-reporter.R:5:3', 'test-shinytest2-reporter.R:15:3',
    'test-shinytest2-reporter.R:25:3', 'test-shinytest2-show-rcode.R:5:3',
    'test-shinytest2-snapshot_manager.R:2:3',
    'test-shinytest2-teal_data_module.R:28:3',
    'test-shinytest2-teal_data_module.R:38:3',
    'test-shinytest2-teal_data_module.R:48:3',
    'test-shinytest2-teal_data_module.R:58:3',
    'test-shinytest2-teal_data_module.R:69:3',
    'test-shinytest2-teal_data_module.R:79:3',
    'test-shinytest2-teal_data_module.R:90:3',
    'test-shinytest2-teal_data_module.R:100:3',
    'test-shinytest2-teal_data_module.R:116:3',
    'test-shinytest2-teal_data_module.R:142:3',
    'test-shinytest2-teal_data_module.R:174:3',
    'test-shinytest2-teal_slices.R:5:3', 'test-shinytest2-teal_slices.R:48:3'
  • todo (3): 'test-module_teal.R:1596:7', 'test-module_teal.R:1603:5',
    'test-module_teal.R:1606:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-teal_reporter.R:17:3'): TealReportCard$get_content returns content with metadata ──
  Error in `card$get_content()[[1]]$get_content`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_identical(...) at test-teal_reporter.R:17:3
   2.   └─testthat::quasi_label(enquo(object), label)
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Failure ('test-teal_reporter.R:38:3'): TealReportCard$append_src returns title and content ──
  Expected `card$get_content()[[1]]$get_content()` to be identical to "test".
  Differences:
  1/1 mismatches
  x[1]: "```{r, eval=FALSE}\ntest\n```\n"
  y[1]: "test"
  ── Error ('test-teal_reporter.R:54:3'): TealReportCard$append_encodings returns title and content ──
  Error in `card$get_content()[[1]]$get_content`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_identical(...) at test-teal_reporter.R:54:3
   2.   └─testthat::quasi_label(enquo(object), label)
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-teal_reporter.R:81:3'): TealReportCard$append_fs returns title and content ──
  Error in `card$get_content()[[1]]$get_content`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_identical(...) at test-teal_reporter.R:81:3
   2.   └─testthat::quasi_label(enquo(object), label)
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Failure ('test-teal_reporter.R:94:3'): TealSlicesBlock$get_content returns yaml character ──
  Expected `block$get_content()` to be identical to "- Dataset name: a\n  Variable name: b\n".
  Differences:
  1/1 mismatches
  x[1]: "```\n- Dataset name: a\n  Variable name: b\n\n```\n"
  y[1]: "- Dataset name: a\n  Variable name: b\n"
  ── Failure ('test-teal_reporter.R:100:3'): TealSlicesBlock$to_list returns list containing teal_slices ──
  Expected `block$to_list()` to be identical to `list(text = "- Dataset name: a\n  Variable name: b\n", style = "verbatim")`.
  Differences:
  Component "text": 1 string mismatch
  ── Failure ('test-teal_reporter.R:111:3'): TealSlicesBlock$from_list retains states from a list ──
  Expected `block1$get_content()` to be identical to `block2$get_content()`.
  Differences:
  1/1 mismatches
  x[1]: "```\n- Dataset name: a\n  Variable name: b\n\n```\n"
  y[1]: "```\n```\n- Dataset name: a\n  Variable name: b\n\n```\n\n```\n"
  
  [ FAIL 7 | WARN 1 | SKIP 52 | PASS 388 ]
  Deleting unused snapshots: 'linux-4.5/shinytest2-init/teal-001.png' and
  'linux-4.5/shinytest2-wunder_bar/teal-001.png'
  Error:
  ! Test failures.
  Execution halted