Running ‘testthat.R’ [4s/5s]
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(linkeR)
  > 
  > test_check("linkeR")
  Detected sf object for business_map. Will automatically extract coordinates.
  Linked 2 components: business_map, business_table
  Non-POINT geometries detected. Using centroids for coordinates.
  Saving _problems/test-plotly-16.R
  Saving _problems/test-plotly-22.R
  Saving _problems/test-plotly-51.R
  Saving _problems/test-plotly-80.R
  Saving _problems/test-plotly-98.R
  Saving _problems/test-plotly-124.R
  Saving _problems/test-plotly-152.R
  Saving _problems/test-plotly-199.R
  Saving _problems/test-plotly-243.R
  Saving _problems/test-plotly-247.R
  Saving _problems/test-plotly-248.R
  Linked 2 components: table1, table2
  Linked 2 components: table1, table2
  Linked 2 components: test_map, test_table
  Linked 2 components: test_table, test_table2
  [ FAIL 11 | WARN 1 | SKIP 2 | PASS 210 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • DT package is available, cannot test missing package scenario (1):
    'test-dt.R:76:5'
  • leaflet package is available, cannot test missing package scenario (1):
    'test-leaftlet.R:124:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-plotly.R:14:3'): register_plotly validates input ─────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  ── Error ('test-plotly.R:19:3'): register_plotly validates input ───────────────
  Error in `register_plotly(session, NULL, "test_plot", test_data, "id")`: plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-plotly.R:19: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. └─linkeR::register_plotly(...)
  ── Error ('test-plotly.R:51:3'): register_plotly creates proper component registration ──
  Error in `register_plotly(session, registry, "test_plot", test_data, "business_id")`: plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  Backtrace:
      ▆
   1. └─linkeR::register_plotly(...) at test-plotly.R:51:3
  ── Error ('test-plotly.R:75:3'): register_plotly handles custom configuration ──
  Error in `register_plotly(session, registry, "test_plot", test_data, "id", event_types = c("plotly_click", "plotly_selected"), source = "custom_source", click_handler = custom_handler)`: plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  Backtrace:
      ▆
   1. └─linkeR::register_plotly(...) at test-plotly.R:75:3
  ── Error ('test-plotly.R:98:3'): register_plotly uses default values correctly ──
  Error in `register_plotly(session, registry, "test_plot", test_data, "id")`: plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  Backtrace:
      ▆
   1. └─linkeR::register_plotly(...) at test-plotly.R:98:3
  ── Error ('test-plotly.R:124:3'): update_plotly_selection validates inputs ─────
  Error in `register_plotly(session, registry, "test_plot", test_data, "id")`: plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  Backtrace:
      ▆
   1. └─linkeR::register_plotly(...) at test-plotly.R:124:3
  ── Error ('test-plotly.R:152:3'): setup_plotly_observers creates observers ─────
  Error in `register_plotly(session, registry, "test_plot", test_data, "id")`: plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  Backtrace:
      ▆
   1. └─linkeR::register_plotly(...) at test-plotly.R:152:3
  ── Error ('test-plotly.R:199:3'): apply_default_plotly_behavior handles selection and deselection ──
  Error in `register_plotly(session, registry, "test_plot", test_data, "id")`: plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  Backtrace:
      ▆
   1. └─linkeR::register_plotly(...) at test-plotly.R:199:3
  ── Failure ('test-plotly.R:241:3'): plotly registration works with valid column ──
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    plotly package is required for Plotly component linking. Please install it with: install.packages('plotly')
  ── Failure ('test-plotly.R:247:3'): plotly registration works with valid column ──
  Expected `components` to have length 1.
  Actual length: 0.
  ── Failure ('test-plotly.R:248:3'): plotly registration works with valid column ──
  Expected `"mock-session-test_plot1" %in% names(components)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 11 | WARN 1 | SKIP 2 | PASS 210 ]
  Error:
  ! Test failures.
  Execution halted