Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(evaluator)
  > 
  > test_check("evaluator")
  ── 1. Error: Analyze report renders (@test-reports.R#31)  ──────────────────────
  generate_report requires the following packages which are not available: psych, pander, purrrlyr, ggalt, rmarkdown
  Please install and try again.
  1: evaluate_promise(generate_report(input_directory = tmpinputs, results_directory = tmpdata, 
         output_file = file, quiet = FALSE)) at testthat/test-reports.R:31
  2: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  3: force(code)
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: generate_report(input_directory = tmpinputs, results_directory = tmpdata, output_file = file, 
         quiet = FALSE)
  7: check_availability(packages = c("psych", "pander", "purrrlyr", "ggalt", "rmarkdown"), 
         func = "generate_report")
  8: stop(func, " requires the following packages which are not available: ", paste0(res[, 
         ]$package, collapse = ", "), "\n", "Please install and try again.", call. = FALSE)
  
  ── 2. Error: Risk Dashboard renders (@test-reports.R#58)  ──────────────────────
  risk_dashboard requires the following packages which are not available: rmarkdown, shiny, flexdashboard, forcats
  Please install and try again.
  1: evaluate_promise(risk_dashboard(input_directory = tmpinputs, results_directory = tmpdata, 
         output_file = file, quiet = FALSE)) at testthat/test-reports.R:58
  2: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  3: force(code)
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: risk_dashboard(input_directory = tmpinputs, results_directory = tmpdata, output_file = file, 
         quiet = FALSE)
  7: check_availability(c("rmarkdown", "shiny", "flexdashboard", "forcats"), func = "risk_dashboard")
  8: stop(func, " requires the following packages which are not available: ", paste0(res[, 
         ]$package, collapse = ", "), "\n", "Please install and try again.", call. = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 82 SKIPPED: 3 FAILED: 2
  1. Error: Analyze report renders (@test-reports.R#31) 
  2. Error: Risk Dashboard renders (@test-reports.R#58) 
  
  Error: testthat unit tests failed
  Execution halted