Running ‘testthat.R’ [37s/45s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(ecorisk)
  > 
  > test_check("ecorisk")
  [[1]]
  
  [[2]]
  
  [[3]]
  
  [[4]]
  
  Saving _problems/test-plotting_functions-14.R
  Please review the model diagnostics of the GAMs applied in the time series based sensitivity scoring using the function plot_diagnostic_sensitivity(). Remove models with unacceptable diagnostics from the output table of this function.
  Please review the model diagnostics of the GAMs applied in the time series based sensitivity scoring using the function plot_diagnostic_sensitivity(). Remove models with unacceptable diagnostics from the output table of this function.
  Please review the model diagnostics of the GAMs applied in the time series based sensitivity scoring using the function plot_diagnostic_sensitivity(). Remove models with unacceptable diagnostics from the output table of this function.
  Please review the model diagnostics of the GAMs applied in the time series based sensitivity scoring using the function plot_diagnostic_sensitivity(). Remove models with unacceptable diagnostics from the output table of this function.
  Please review the model diagnostics of the GAMs applied in the time series based sensitivity scoring using the function plot_diagnostic_sensitivity(). Remove models with unacceptable diagnostics from the output table of this function.
  Please review the model diagnostics of the GAMs applied in the time series based sensitivity scoring using the function plot_diagnostic_sensitivity(). Remove models with unacceptable diagnostics from the output table of this function.
  Please review the model diagnostics of the GAMs applied in the time series based sensitivity scoring using the function plot_diagnostic_sensitivity(). Remove models with unacceptable diagnostics from the output table of this function.
  Please review the model diagnostics of the GAMs applied in the time series based sensitivity scoring using the function plot_diagnostic_sensitivity(). Remove models with unacceptable diagnostics from the output table of this function.
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 450 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plotting_functions.R:11:3'): plotting functions give a known output ──
  Error: Package "ggpubr" must be installed to use this function.
  Backtrace:
      ▆
   1. └─ecorisk::plot_heatmap(risk_scores = ex_output_risk_expert, aggregated_scores = ex_output_aggregate_risk_expert) at test-plotting_functions.R:11:3
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 450 ]
  Deleting unused snapshots: 'plotting_functions/diagnostic-plot.svg' and
  'plotting_functions/heatmap-plot.svg'
  Error:
  ! Test failures.
  Execution halted