Running ‘testthat.R’ [10s/15s]
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(DUToolkit)
  > 
  > test_check("DUToolkit")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 101 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-plot_density.R:3:3'): density plot is returned in the correct format ──
  class(density_plots$Baseline) (`actual`) not equal to c("gg", "ggplot") (`expected`).
  
  `actual`:        "ggplot2::ggplot" "ggplot" "ggplot2::gg" "S7_object" "gg"    
  `expected[2:2]`:                                                      "ggplot"
  ── Failure ('test-plot_fan.R:3:3'): fan plot is returned in the correct format ──
  class(fan_plots$Baseline) (`actual`) not equal to c("gg", "ggplot") (`expected`).
  
  `actual`:        "ggplot2::ggplot" "ggplot" "ggplot2::gg" "S7_object" "gg"    
  `expected[2:2]`:                                                      "ggplot"
  ── Failure ('test-plot_raincloud.R:2:3'): raincloud plot is returned in the correct format ──
  class(plot_raincloud(peak_values_list, D = D)) (`actual`) not equal to c("gg", "ggplot") (`expected`).
  
  `actual`:        "ggplot2::ggplot" "ggplot" "ggplot2::gg" "S7_object" "gg"    
  `expected[2:2]`:                                                      "ggplot"
  ── Failure ('test-plot_temporal.R:3:3'): temporal plot is returned in the correct format ──
  class(peak_temporal_plots$Baseline) (`actual`) not equal to c("gg", "ggplot") (`expected`).
  
  `actual`:        "ggplot2::ggplot" "ggplot" "ggplot2::gg" "S7_object" "gg"    
  `expected[2:2]`:                                                      "ggplot"
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 101 ]
  Error: Test failures
  Execution halted