Running ‘testthat.R’ [3s/11s]
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(ggparallel)
  Loading required package: ggplot2
  > 
  > test_check("ggparallel")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ggparallel.R:12:3'): ggparallel works ──────────────────────────
  Error in `geom_ribbon(aes(x = x, ymin = value - Freq, ymax = value, group = id, 
      fill = Nodeset, colour = Nodeset), alpha = alpha, data = dfm)`: Problem while computing aesthetics.
  i Error occurred in the 1st layer.
  Caused by error in `scales_add_defaults()`:
  ! could not find function "scales_add_defaults"
  Backtrace:
       ▆
    1. ├─ggplot2::ggplot_build(test_mtcars_plot) at test-ggparallel.R:12:3
    2. ├─ggplot2:::ggplot_build.ggplot(test_mtcars_plot)
    3. │ └─ggplot2:::by_layer(...)
    4. │   ├─rlang::try_fetch(...)
    5. │   │ ├─base::tryCatch(...)
    6. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
   11. │     └─l$compute_aesthetics(d, plot)
   12. │       └─ggplot2 (local) compute_aesthetics(..., self = self)
   13. └─base::.handleSimpleError(...)
   14.   └─rlang (local) h(simpleError(msg, call))
   15.     └─handlers[[1L]](cnd)
   16.       └─cli::cli_abort(...)
   17.         └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted