Running ‘testthat.R’ [14s/15s]
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#28)  ──────────────────────
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: evaluate_promise(generate_report(input_directory = tmpinputs, results_directory = tmpdata, 
         output_file = file, quiet = FALSE)) at testthat/test-reports.R:28
  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: rmarkdown::render(system.file("rmd", "analyze_risk.Rmd", package = "evaluator"), 
         output_file = output_file, params = list(input_directory = input_directory, results_directory = results_directory, 
             focus_scenario_ids = focus_scenario_ids), output_format = out_format, ...)
  8: pandoc_available(required_pandoc, error = TRUE)
  9: stop(paste(msg, collapse = " "), call. = FALSE)
  
  ── 2. Error: Risk Dashboard renders (@test-reports.R#51)  ──────────────────────
  pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
  1: evaluate_promise(risk_dashboard(input_directory = tmpinputs, results_directory = tmpdata, 
         output_file = file, quiet = FALSE)) at testthat/test-reports.R:51
  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: rmarkdown::render(system.file("rmd", "risk_dashboard.Rmd", package = "evaluator"), 
         output_options = list(css = styles, favicon = icon, logo = icon), output_file = output_file, 
         params = list(input_directory = input_directory, results_directory = results_directory), 
         ...)
  8: pandoc_available(required_pandoc, error = TRUE)
  9: stop(paste(msg, collapse = " "), call. = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 78 SKIPPED: 3 FAILED: 2
  1. Error: Analyze report renders (@test-reports.R#28) 
  2. Error: Risk Dashboard renders (@test-reports.R#51) 
  
  Error: testthat unit tests failed
  Execution halted