Running 'testthat.R' [12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(hardhat)
  > 
  > test_check("hardhat")
  -- 1. Error: (unknown) (@test-forge-recipe.R#3)  -------------------------------
  package 'dplyr' could not be loaded
  Backtrace:
   1. base::library(recipes)
   2. base::.getRequiredPackages2(pkgInfo, quietly = quietly)
  
  -- 2. Error: (unknown) (@test-mold-recipe.R#3)  --------------------------------
  package 'dplyr' could not be loaded
  Backtrace:
   1. base::library(recipes)
   2. base::.getRequiredPackages2(pkgInfo, quietly = quietly)
  
  -- 3. Error: (unknown) (@test-print.R#30)  -------------------------------------
  package 'dplyr' could not be loaded
  Backtrace:
   1. base::library(recipes)
   2. base::.getRequiredPackages2(pkgInfo, quietly = quietly)
  
  -- 4. Failure: can create a modeling package (@test-use.R#11)  -----------------
  `create_modeling_package(dir_pkg, model, open = FALSE)` threw an error.
  Message: The `recipes` package must be installed for this functionality.
  Class:   rlang_error/error/condition
  Backtrace:
    1. testthat::expect_output(...)
   15. hardhat::create_modeling_package(dir_pkg, model, open = FALSE)
   16. hardhat:::validate_installed("recipes")
  
  -- 5. Failure: can create a modeling package (@test-use.R#11)  -----------------
  `expect_error(...)` produced no output
  
  -- 6. Failure: can create a modeling package (@test-use.R#21)  -----------------
  "DESCRIPTION" %in% top_level_files isn't true.
  
  -- 7. Failure: can create a modeling package (@test-use.R#22)  -----------------
  "R" %in% top_level_files isn't true.
  
  -- 8. Failure: can create a modeling package (@test-use.R#23)  -----------------
  "man" %in% top_level_files isn't true.
  
  -- 9. Failure: can create a modeling package (@test-use.R#24)  -----------------
  "NAMESPACE" %in% top_level_files isn't true.
  
  -- 10. Failure: can create a modeling package (@test-use.R#26)  ----------------
  glue::glue("{model}-constructor.R") %in% script_files isn't true.
  
  -- 11. Failure: can create a modeling package (@test-use.R#27)  ----------------
  glue::glue("{model}-fit.R") %in% script_files isn't true.
  
  -- 12. Failure: can create a modeling package (@test-use.R#28)  ----------------
  glue::glue("{model}-predict.R") %in% script_files isn't true.
  
  -- 13. Failure: can add a second model to a modeling package (@test-use.R#40)  -
  `create_modeling_package(dir_pkg, model1, open = FALSE)` threw an error.
  Message: The `recipes` package must be installed for this functionality.
  Class:   rlang_error/error/condition
  Backtrace:
    1. testthat::expect_output(...)
   15. hardhat::create_modeling_package(dir_pkg, model1, open = FALSE)
   16. hardhat:::validate_installed("recipes")
  
  -- 14. Failure: can add a second model to a modeling package (@test-use.R#40)  -
  `expect_error(...)` produced no output
  
  -- 15. Failure: can add a second model to a modeling package (@test-use.R#53)  -
  `with_dir(dir_pkg, use_modeling_files(model2))` threw an error.
  Message: Path 'D:/temp/Rtmpqiu0Gj/model/' does not appear to be inside a project or package.
  Class:   usethis_error/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    8. hardhat::use_modeling_files(model2)
    9. hardhat:::use_modeling_files_impl(model)
   10. usethis::use_package_doc()
   11. usethis:::check_is_package("use_package_doc()")
   20. usethis:::project_name()
   22. usethis::proj_get()
   23. usethis::proj_set(".")
   24. usethis::ui_stop("Path {ui_path(path)} does not appear to be inside a project or package.")
  
  -- 16. Failure: can add a second model to a modeling package (@test-use.R#60)  -
  glue::glue("{model1}-constructor.R") %in% script_files isn't true.
  
  -- 17. Failure: can add a second model to a modeling package (@test-use.R#61)  -
  glue::glue("{model1}-fit.R") %in% script_files isn't true.
  
  -- 18. Failure: can add a second model to a modeling package (@test-use.R#62)  -
  glue::glue("{model1}-predict.R") %in% script_files isn't true.
  
  -- 19. Failure: can add a second model to a modeling package (@test-use.R#64)  -
  glue::glue("{model2}-constructor.R") %in% script_files isn't true.
  
  -- 20. Failure: can add a second model to a modeling package (@test-use.R#65)  -
  glue::glue("{model2}-fit.R") %in% script_files isn't true.
  
  -- 21. Failure: can add a second model to a modeling package (@test-use.R#66)  -
  glue::glue("{model2}-predict.R") %in% script_files isn't true.
  
  -- 22. Failure: no `model` aborts early (@test-use.R#70)  ----------------------
  `create_modeling_package("my/path")` threw an error with unexpected message.
  Expected match: "is missing, with no default"
  Actual message: "The `recipes` package must be installed for this functionality."
  Backtrace:
   1. testthat::expect_error(create_modeling_package("my/path"), "is missing, with no default")
   6. hardhat::create_modeling_package("my/path")
   7. hardhat:::validate_installed("recipes")
  
  -- 23. Failure: no `path` aborts normally (@test-use.R#77)  --------------------
  `create_modeling_package(model = "my_model")` threw an error with unexpected message.
  Expected match: "is missing, with no default"
  Actual message: "The `recipes` package must be installed for this functionality."
  Backtrace:
   1. testthat::expect_error(...)
   6. hardhat::create_modeling_package(model = "my_model")
   7. hardhat:::validate_installed("recipes")
  
  -- 24. Failure: `model` can only be a single string (@test-use.R#84)  ----------
  `create_modeling_package(model = c("model1", "model2"))` threw an error with unexpected message.
  Expected match: "must be a single string"
  Actual message: "The `recipes` package must be installed for this functionality."
  Backtrace:
   1. testthat::expect_error(...)
   6. hardhat::create_modeling_package(model = c("model1", "model2"))
   7. hardhat:::validate_installed("recipes")
  
  -- 25. Failure: `model` can only be a single string (@test-use.R#89)  ----------
  `create_modeling_package(model = 1)` threw an error with unexpected message.
  Expected match: "must be a single string"
  Actual message: "The `recipes` package must be installed for this functionality."
  Backtrace:
   1. testthat::expect_error(create_modeling_package(model = 1), "must be a single string")
   6. hardhat::create_modeling_package(model = 1)
   7. hardhat:::validate_installed("recipes")
  
  -- 26. Failure: `model` can only be a single string (@test-use.R#94)  ----------
  `create_modeling_package(model = "model with space")` threw an error with unexpected message.
  Expected match: "must not contain any spaces"
  Actual message: "The `recipes` package must be installed for this functionality."
  Backtrace:
   1. testthat::expect_error(...)
   6. hardhat::create_modeling_package(model = "model with space")
   7. hardhat:::validate_installed("recipes")
  
  == testthat results  ===========================================================
  [ OK: 351 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 26 ]
  1. Error: (unknown) (@test-forge-recipe.R#3) 
  2. Error: (unknown) (@test-mold-recipe.R#3) 
  3. Error: (unknown) (@test-print.R#30) 
  4. Failure: can create a modeling package (@test-use.R#11) 
  5. Failure: can create a modeling package (@test-use.R#11) 
  6. Failure: can create a modeling package (@test-use.R#21) 
  7. Failure: can create a modeling package (@test-use.R#22) 
  8. Failure: can create a modeling package (@test-use.R#23) 
  9. Failure: can create a modeling package (@test-use.R#24) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted