Running ‘testthat.R’ [145s/247s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(daiquiri)
  > 
  > test_check("daiquiri")
  [ FAIL 5 | WARN 5 | SKIP 6 | PASS 244 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-main.R:70'): daiquiri_report() creates report and returns daiquiri object successfully ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─daiquiri::daiquiri_report(...) at test-main.R:70:2
   2.   └─daiquiri::report_data(...)
   3.     └─rmarkdown::render(...)
   4.       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   5.         └─xfun::write_utf8(res, output)
   6.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   7.             └─base::file(con, "w")
  ── Error ('test-main.R:124'): daiquiri_report() works even when column_names contain special chars ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─daiquiri::daiquiri_report(...) at test-main.R:124:2
   2.   └─daiquiri::report_data(...)
   3.     └─rmarkdown::render(...)
   4.       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   5.         └─xfun::write_utf8(res, output)
   6.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   7.             └─base::file(con, "w")
  ── Error ('test-main.R:158'): daiquiri_report() gets dataset_description from call if NULL (default) passed in ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─daiquiri::daiquiri_report(...) at test-main.R:158:2
   2.   └─daiquiri::report_data(...)
   3.     └─rmarkdown::render(...)
   4.       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   5.         └─xfun::write_utf8(res, output)
   6.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   7.             └─base::file(con, "w")
  ── Error ('test-main.R:202'): daiquiri_object prints to console ok ─────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─daiquiri::daiquiri_report(...) at test-main.R:202:2
   2.   └─daiquiri::report_data(...)
   3.     └─rmarkdown::render(...)
   4.       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
   5.         └─xfun::write_utf8(res, output)
   6.           └─base::writeLines(enc2utf8(text), con, ..., useBytes = TRUE)
   7.             └─base::file(con, "w")
  ── Error ('test-reports.R:82'): report_data() creates report and returns path successfully ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─daiquiri::report_data(...) at test-reports.R:82:2
   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 5 | WARN 5 | SKIP 6 | PASS 244 ]
  Deleting unused snapshots:
  • aggregate_data/test_[ALL_FIELDS_COMBINED].csv
  • aggregate_data/test_[DUPLICATES].csv
  • aggregate_data/test_col1.csv
  • aggregate_data/test_col2.csv
  Error: Test failures
  Execution halted