Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(vegawidget)
  > 
  > test_check("vegawidget")
  
  Attaching package: 'rlang'
  
  The following objects are masked from 'package:withr':
  
      local_options, with_options
  
  The following objects are masked from 'package:testthat':
  
      is_false, is_null, is_true
  
  [ FAIL 8 | WARN 0 | SKIP 3 | PASS 98 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-spec-version.R:38:3', 'test-vega-version.R:3:3',
    'test-vegaspec.R:86:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-autosize.R:56:3'): autosize works ──────────────────────────────
  <assertError/simpleError/error/condition>
  Error: Package(s): "V8" needed for this function to work. Please install.
  Backtrace:
      ▆
   1. └─vegawidget::vw_to_vega(spec_mtcars) at test-autosize.R:56:3
   2.   ├─vegawidget:::.vw_to_vega(as_vegaspec(spec))
   3.   └─vegawidget:::.vw_to_vega.vegaspec_vega_lite(as_vegaspec(spec))
   4.     └─vegawidget:::assert_packages("V8")
   5.       └─assertthat::assert_that(...)
  ── Error ('test-callback-helpers.R:4:1'): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'V8'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-callback-helpers.R:4:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-to-image.R:55:3'): vw_to_svg works with vega spec ──────────────
  <assertError/simpleError/error/condition>
  Error: Package(s): "V8" needed for this function to work. Please install.
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-to-image.R:55:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-to-image.R:63:3'): vw_to_svg works with vega-lite spec ─────────
  <assertError/simpleError/error/condition>
  Error: Package(s): "V8" needed for this function to work. Please install.
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(cat(vw_to_svg(spec_mtcars))) at test-to-image.R:63:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-to-image.R:78:3'): vw_to_svg works with url data ───────────────
  <assertError/simpleError/error/condition>
  Error: Package(s): "V8" needed for this function to work. Please install.
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(cat(vw_to_svg(spec_anscombe, base_url = base_url))) at test-to-image.R:78:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-to-image.R:100:3'): vw_to_svg works with local data ────────────
  <assertError/simpleError/error/condition>
  Error: Package(s): "V8" needed for this function to work. Please install.
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(cat(vw_to_svg(spec_anscombe, base_url = tempdir))) at test-to-image.R:100:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-to-vega.R:3:3'): vw_to_vega works ──────────────────────────────
  <assertError/simpleError/error/condition>
  Error: Package(s): "V8" needed for this function to work. Please install.
  Backtrace:
      ▆
   1. └─vegawidget::vw_to_vega(spec_mtcars) at test-to-vega.R:3:3
   2.   ├─vegawidget:::.vw_to_vega(as_vegaspec(spec))
   3.   └─vegawidget:::.vw_to_vega.vegaspec_vega_lite(as_vegaspec(spec))
   4.     └─vegawidget:::assert_packages("V8")
   5.       └─assertthat::assert_that(...)
  ── Error ('test-vegaspec.R:18:3'): class is correct ────────────────────────────
  <assertError/simpleError/error/condition>
  Error: Package(s): "V8" needed for this function to work. Please install.
  Backtrace:
      ▆
   1. └─vegawidget::vw_to_vega(spec_mtcars) at test-vegaspec.R:18:3
   2.   ├─vegawidget:::.vw_to_vega(as_vegaspec(spec))
   3.   └─vegawidget:::.vw_to_vega.vegaspec_vega_lite(as_vegaspec(spec))
   4.     └─vegawidget:::assert_packages("V8")
   5.       └─assertthat::assert_that(...)
  
  [ FAIL 8 | WARN 0 | SKIP 3 | PASS 98 ]
  Error: Test failures
  Execution halted