Running 'testthat.R' [30s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(constructive)
  > 
  > test_check("constructive")
  [ FAIL 3 | WARN 0 | SKIP 58 | PASS 10 ]
  
  ══ Skipped tests (58) ══════════════════════════════════════════════════════════
  • On CRAN (58): 'test-abort.R:2:3', 'test-abort.R:27:3',
    'test-construct_diff.R:2:3', 'test-construct_multi.R:15:3',
    'test-construct_signature.R:2:3', 'test-deparse_call.R:2:3',
    'test-encoding.R:2:3', 'test-opts.R:2:3', 'test-others.R:2:3',
    'test-others.R:20:3', 'test-others.R:27:3', 'test-repair_attributes.R:4:3',
    'test-s3-AsIs.R:2:3', 'test-s3-Date.R:15:3', 'test-s3-POSIXct.R:19:3',
    'test-s3-POSIXlt.R:19:3', 'test-s3-array.R:2:3', 'test-s3-atomic.R:2:3',
    'test-s3-atomic.R:36:3', 'test-s3-atomic.R:48:3',
    'test-s3-constructive_options.R:2:3', 'test-s3-data.frame.R:2:3',
    'test-s3-data.table.R:2:3', 'test-s3-dm.R:2:3', 'test-s3-dots.R:2:3',
    'test-s3-environment.R:2:3', 'test-s3-externalptr.R:2:3',
    'test-s3-factor.R:2:3', 'test-s3-formula.R:3:3', 'test-s3-function.R:2:3',
    'test-s3-ggplot2-Coord.R:11:3', 'test-s3-ggplot2-Coord.R:20:3',
    'test-s3-ggplot2-Coord.R:26:3', 'test-s3-ggplot2-Coord.R:36:3',
    'test-s3-ggplot2-Coord.R:44:3', 'test-s3-ggplot2-labels.R:2:3',
    'test-s3-ggplot2-theme.R:2:3', 'test-s3-ggplot2-waiver.R:2:3',
    'test-s3-grouped_df.R:2:3', 'test-s3-language.R:2:3',
    'test-s3-language.R:11:3', 'test-s3-list.R:15:3', 'test-s3-matrix.R:2:3',
    'test-s3-mts.R:3:3', 'test-s3-numeric_version.R:2:3',
    'test-s3-ordered.R:2:3', 'test-s3-pairlist.R:2:3', 'test-s3-quosure.R:2:3',
    'test-s3-quosures.R:2:3', 'test-s3-rowwise_df.R:2:3', 'test-s3-tbl_df.R:4:3',
    'test-s3-tbl_df.R:14:3', 'test-s3-ts.R:2:3', 'test-s3-vctrs_list_of.R:2:3',
    'test-s3-weakref.R:2:3', 'test-s4.R:2:3', 'test-utils.R:2:3',
    'test-utils.R:10:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-s3-ggplot2-Coord.R:2:3'): CoordCartesian ───────────────────────
  Error in `construct(ggplot2::scale_x_continuous(limits = c(325, 500)))`: {constructive} could not build the requested code.
  Caused by error in `get()`:
  ! object 'ggplot2::scale_x_continuous' not found
  Backtrace:
       ▆
    1. ├─constructive::construct(ggplot2::scale_x_continuous(limits = c(325, 500)))
    2. │ └─constructive:::try_construct(...)
    3. │   ├─rlang::try_fetch(...)
    4. │   │ ├─base::tryCatch(...)
    5. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    6. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    7. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    8. │   │ └─base::withCallingHandlers(...)
    9. │   ├─constructive::.cstr_construct(x, ...)
   10. │   └─constructive:::.cstr_construct.Scale(x, ...)
   11. │     └─constructive:::defaults_arg_values(fun_chr, "ggplot2")
   12. │       ├─utils::head(as.list(getFromNamespace(fun, pkg)), -1)
   13. │       ├─base::as.list(getFromNamespace(fun, pkg))
   14. │       └─utils::getFromNamespace(fun, pkg)
   15. │         └─base::get(x, envir = ns, inherits = FALSE)
   16. └─base::.handleSimpleError(...)
   17.   └─rlang (local) h(simpleError(msg, call))
   18.     └─handlers[[1L]](cnd)
   19.       └─rlang::abort(...)
  ── Error ('test-s3-ggplot2-Scale.R:2:3'): Scale ────────────────────────────────
  Error in `construct(ggplot2::scale_alpha())`: {constructive} could not build the requested code.
  Caused by error in `get()`:
  ! object 'ggplot2::scale_alpha' not found
  Backtrace:
       ▆
    1. ├─constructive::construct(ggplot2::scale_alpha())
    2. │ └─constructive:::try_construct(...)
    3. │   ├─rlang::try_fetch(...)
    4. │   │ ├─base::tryCatch(...)
    5. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    6. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    7. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    8. │   │ └─base::withCallingHandlers(...)
    9. │   ├─constructive::.cstr_construct(x, ...)
   10. │   └─constructive:::.cstr_construct.Scale(x, ...)
   11. │     └─constructive:::defaults_arg_values(fun_chr, "ggplot2")
   12. │       ├─utils::head(as.list(getFromNamespace(fun, pkg)), -1)
   13. │       ├─base::as.list(getFromNamespace(fun, pkg))
   14. │       └─utils::getFromNamespace(fun, pkg)
   15. │         └─base::get(x, envir = ns, inherits = FALSE)
   16. └─base::.handleSimpleError(...)
   17.   └─rlang (local) h(simpleError(msg, call))
   18.     └─handlers[[1L]](cnd)
   19.       └─rlang::abort(...)
  ── Error ('test-s3-ggplot2-ggplot.R:2:3'): ggplot ──────────────────────────────
  Error in `construct(p2, data = tibble::lst(mpg_99), check = FALSE)`: {constructive} could not build the requested code.
  Caused by error in `get()`:
  ! object 'ggplot2::scale_x_continuous' not found
  Backtrace:
       ▆
    1. ├─constructive::construct(p2, data = tibble::lst(mpg_99), check = FALSE)
    2. │ └─constructive:::try_construct(...)
    3. │   ├─rlang::try_fetch(...)
    4. │   │ ├─base::tryCatch(...)
    5. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    6. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    7. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    8. │   │ └─base::withCallingHandlers(...)
    9. │   ├─constructive::.cstr_construct(x, ...)
   10. │   └─constructive:::.cstr_construct.ggplot(x, ...)
   11. │     └─constructive:::pipe_to_scales(code, x$scales, ...)
   12. │       ├─constructive::.cstr_construct(...)
   13. │       └─constructive:::.cstr_construct.ScalesList(...)
   14. │         └─base::lapply(...)
   15. │           ├─constructive (local) FUN(X[[i]], ...)
   16. │           └─constructive:::.cstr_construct.Scale(X[[i]], ...)
   17. │             └─constructive:::defaults_arg_values(fun_chr, "ggplot2")
   18. │               ├─utils::head(as.list(getFromNamespace(fun, pkg)), -1)
   19. │               ├─base::as.list(getFromNamespace(fun, pkg))
   20. │               └─utils::getFromNamespace(fun, pkg)
   21. │                 └─base::get(x, envir = ns, inherits = FALSE)
   22. └─base::.handleSimpleError(...)
   23.   └─rlang (local) h(simpleError(msg, call))
   24.     └─handlers[[1L]](cnd)
   25.       └─rlang::abort(...)
  
  [ FAIL 3 | WARN 0 | SKIP 58 | PASS 10 ]
  Error: Test failures
  Execution halted