Running ‘testthat.R’ [10s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tikatuwq)
  > test_check("tikatuwq")
  [ FAIL 2 | WARN 5 | SKIP 13 | PASS 112 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (12): 'test-param_analysis.R:2:3', 'test-param_analysis.R:30:3',
    'test-param_analysis.R:50:3', 'test-param_analysis.R:75:3',
    'test-param_analysis_multi.R:2:3', 'test-param_analysis_multi.R:28:3',
    'test-param_analysis_multi.R:61:3', 'test-param_analysis_multi.R:88:3',
    'test-plot_map.R:2:3', 'test-plot_map.R:11:3', 'test-plot_map.R:28:3',
    'test-plot_trend.R:2:3'
  • requireNamespace("rmarkdown", quietly = TRUE) is TRUE (1):
    'test-render_report.R:30:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-render_report.R:23:3'): render_report creates output file when rmarkdown available ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─tikatuwq::render_report(df, output_dir = tmp_dir) at test-render_report.R:23:3
   2.   └─rmarkdown::render(...)
   3.     └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   4.       └─xfun::write_utf8(res, output)
   5.         └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   6.           └─base::file(con, "w")
  ── Error ('test-render_report.R:55:3'): render_report accepts meta parameter ───
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─tikatuwq::render_report(...) at test-render_report.R:55:3
   2.   └─rmarkdown::render(...)
   3.     └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   4.       └─xfun::write_utf8(res, output)
   5.         └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   6.           └─base::file(con, "w")
  
  [ FAIL 2 | WARN 5 | SKIP 13 | PASS 112 ]
  Error:
  ! Test failures.
  Execution halted