Running ‘testthat.R’ [2s/3s]
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(DBmaps)
  > 
  > test_check("DBmaps")
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  Executing step 1: agg_transactions <- transactions[, .(RevenueByCustomer = sum(price * quantity)), by = .(customer_id)]
  Added metadata for table: customers
  Added metadata for table: products
  Added metadata for table: views
  Added metadata for table: transactions
  Saving _problems/test-plot_plan-35.R
  Saving _problems/test-plot_plan-45.R
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 87 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • {DiagrammeR} is not installed (1): 'test-plot_plan.R:22:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plot_plan.R:32:5'): plot_join_plan stops if DiagrammeR is not installed ──
  Error: The 'DiagrammeR' package is required. Please install it: install.packages('DiagrammeR')
  Backtrace:
      ▆
   1. ├─testthat::expect_error(plot_join_plan("not a data.table"), "'join_plan' must be a data.table") at test-plot_plan.R:32:5
   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. └─DBmaps::plot_join_plan("not a data.table")
  ── Error ('test-plot_plan.R:42:3'): plot_join_plan validates the input plan structure ──
  Error: The 'DiagrammeR' package is required. Please install it: install.packages('DiagrammeR')
  Backtrace:
      ▆
   1. ├─testthat::expect_error(plot_join_plan(invalid_plan), "must be a data.table generated by create_join_plan()") at test-plot_plan.R:42: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. └─DBmaps::plot_join_plan(invalid_plan)
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 87 ]
  Error:
  ! Test failures.
  Execution halted