Running ‘testthat.R’ [4s/4s]
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")
  Saving _problems/test-dt-16.R
  Saving _problems/test-dt-22.R
  Saving _problems/test-dt-56.R
  Saving _problems/test-leaftlet-21.R
  Saving _problems/test-leaftlet-27.R
  Saving _problems/test-leaftlet-72.R
  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
  Saving _problems/test-registry-205.R
  Saving _problems/test-registry-244.R
  Saving _problems/test-registry-267.R
  Saving _problems/test-simple-api-72.R
  Saving _problems/test-simple-api-110.R
  Saving _problems/test-simple-api-187.R
  Saving _problems/test-simple-api-214.R
  Saving _problems/test-simple-api-238.R
  Saving _problems/test-simple-api-271.R
  Saving _problems/test-simple-api-323.R
  [ FAIL 27 | WARN 1 | SKIP 18 | PASS 67 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • {DT} is not installed (10): 'test-dt.R:93:3', 'test-dt.R:146:3',
    'test-dt.R:203:3', 'test-dt.R:255:3', 'test-modular.R:2:3',
    'test-modular.R:64:3', 'test-modular.R:131:3', 'test-modular.R:174:3',
    'test-modular.R:202:3', 'test-modular.R:266:3'
  • {leaflet} is not installed (8): 'test-leaftlet.R:93:3',
    'test-leaftlet.R:145:3', 'test-leaftlet.R:202:3', 'test-leaftlet.R:237:3',
    'test-leaftlet.R:295:3', 'test-leaftlet.R:339:3', 'test-leaftlet.R:366:3',
    'test-leaftlet.R:458:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-dt.R:14:3'): register_dt validates input ─────────────────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    DT package is required for DT table linking. Please install it with: install.packages('DT')
  ── Error ('test-dt.R:19:3'): register_dt validates input ───────────────────────
  Error in `register_dt(session, NULL, "test_table", test_data, "id")`: DT package is required for DT table linking. Please install it with: install.packages('DT')
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-dt.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_dt(session, NULL, "test_table", test_data, "id")
  ── Error ('test-dt.R:56:3'): register_dt creates proper component registration ──
  Error in `register_dt(session = session, registry, "business_table", test_data, "business_id")`: DT package is required for DT table linking. Please install it with: install.packages('DT')
  Backtrace:
      ▆
   1. └─linkeR::register_dt(...) at test-dt.R:56:3
  ── Failure ('test-leaftlet.R:19:3'): register_leaflet validates inputs ─────────
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    leaflet package is required for leaflet linking. Please install it with: install.packages('leaflet')
  ── Error ('test-leaftlet.R:24:3'): register_leaflet validates inputs ───────────
  Error in `register_leaflet(session, NULL, "test_map", test_data, "id")`: leaflet package is required for leaflet linking. Please install it with: install.packages('leaflet')
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-leaftlet.R:24: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_leaflet(...)
  ── Error ('test-leaftlet.R:63:3'): register_leaflet creates proper component registration ──
  Error in `register_leaflet(session, registry, "business_map", test_data, "business_id", lng_col = "longitude", lat_col = "latitude", highlight_zoom = 15)`: leaflet package is required for leaflet linking. Please install it with: install.packages('leaflet')
  Backtrace:
      ▆
   1. └─linkeR::register_leaflet(...) at test-leaftlet.R:63:3
  ── 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 
  
  ── Error ('test-registry.R:205:3'): registry manages multiple components correctly ──
  Error in `register_leaflet(session, registry, "map1", data1, "id")`: leaflet package is required for leaflet linking. Please install it with: install.packages('leaflet')
  Backtrace:
      ▆
   1. └─linkeR::register_leaflet(session, registry, "map1", data1, "id") at test-registry.R:205:3
  ── Error ('test-registry.R:244:3'): registry cleanup works ─────────────────────
  Error in `register_dt(session, registry, "table1", data1, "id")`: DT package is required for DT table linking. Please install it with: install.packages('DT')
  Backtrace:
      ▆
   1. └─linkeR::register_dt(session, registry, "table1", data1, "id") at test-registry.R:244:3
  ── Error ('test-registry.R:267:3'): registry handles duplicate component names ──
  Error in `register_dt(session, registry, "table1", data1, "id")`: DT package is required for DT table linking. Please install it with: install.packages('DT')
  Backtrace:
      ▆
   1. └─linkeR::register_dt(session, registry, "table1", data1, "id") at test-registry.R:267:3
  ── Error ('test-simple-api.R:64:3'): link_plots creates registry with components ──
  Error in `register_leaflet(session = session, registry = registry, leaflet_output_id = comp_name, data_reactive = comp_data, shared_id_column = shared_id_column, lng_col = leaflet_lng_col, lat_col = leaflet_lat_col, highlight_zoom = 12, click_handler = leaflet_click_handler)`: leaflet package is required for leaflet linking. Please install it with: install.packages('leaflet')
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-simple-api.R:64: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::link_plots(...)
   8.   └─linkeR::register_leaflet(...)
  ── Error ('test-simple-api.R:101:3'): link_plots works with 3 components ───────
  Error in `register_dt(session = session, registry = registry, dt_output_id = comp_name, data_reactive = comp_data, shared_id_column = shared_id_column, click_handler = dt_click_handler)`: DT package is required for DT table linking. Please install it with: install.packages('DT')
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-simple-api.R:101: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::link_plots(...)
   8.   └─linkeR::register_dt(...)
  ── Error ('test-simple-api.R:179:3'): link_plots validates shared_id_column across all datasets ──
  Error in `register_dt(session = session, registry = registry, dt_output_id = comp_name, data_reactive = comp_data, shared_id_column = shared_id_column, click_handler = dt_click_handler)`: DT package is required for DT table linking. Please install it with: install.packages('DT')
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-simple-api.R:179: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::link_plots(...)
   8.   └─linkeR::register_dt(...)
  ── Failure ('test-simple-api.R:207:3'): link_plots handles different data types in shared column ──
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    DT package is required for DT table linking. Please install it with: install.packages('DT')
  ── Failure ('test-simple-api.R:231:3'): link_plots handles different data types in shared column ──
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    DT package is required for DT table linking. Please install it with: install.packages('DT')
  ── Error ('test-simple-api.R:264:3'): link_plots custom handlers are properly stored ──
  Error in `register_leaflet(session = session, registry = registry, leaflet_output_id = comp_name, data_reactive = comp_data, shared_id_column = shared_id_column, lng_col = leaflet_lng_col, lat_col = leaflet_lat_col, highlight_zoom = 12, click_handler = leaflet_click_handler)`: leaflet package is required for leaflet linking. Please install it with: install.packages('leaflet')
  Backtrace:
      ▆
   1. └─linkeR::link_plots(...) at test-simple-api.R:264:3
   2.   └─linkeR::register_leaflet(...)
  ── Error ('test-simple-api.R:317:3'): link_plots on_selection_change callback works ──
  Error in `register_dt(session = session, registry = registry, dt_output_id = comp_name, data_reactive = comp_data, shared_id_column = shared_id_column, click_handler = dt_click_handler)`: DT package is required for DT table linking. Please install it with: install.packages('DT')
  Backtrace:
      ▆
   1. └─linkeR::link_plots(...) at test-simple-api.R:317:3
   2.   └─linkeR::register_dt(...)
  
  [ FAIL 27 | WARN 1 | SKIP 18 | PASS 67 ]
  Error:
  ! Test failures.
  Execution halted