Running ‘testthat.R’ [66s/68s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(mighty.metadata)
  > 
  > test_check("mighty.metadata")
  Saving _problems/test-y_write_config-8.R
  Saving _problems/test-y_write_config-11.R
  Saving _problems/test-y_write_config-25.R
  [ FAIL 3 | WARN 3 | SKIP 3 | PASS 162 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-mighty_domain.R:1:1', 'test-mighty_study.R:29:1',
    'test-y_create_md_col.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-y_write_config.R:7:3'): write_config() writes study to directory ──
  Expected `write_config(x = study, path = tmpdir)` not to throw any errors.
  Actually got a <simpleError> with message:
    cannot open the connection
  ── Error ('test-y_write_config.R:10:3'): write_config() writes study to directory ──
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(list.files(tmpdir)) at test-y_write_config.R:10:3
   2.   └─testthat:::expect_snapshot_(...)
   3.     ├─testthat:::with_is_snapshotting(...)
   4.     └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   5.       └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
   6.         └─evaluate:::watchout(...)
   7.           └─evaluate:::local_persistent_sink_connection(debug, frame)
   8.             └─base::file("", "w+b")
  ── Failure ('test-y_write_config.R:25:3'): write_config() uses study@path when path is NULL ──
  Expected `all(file.exists(file.path(tmpdir, expected)))` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 3 | WARN 3 | SKIP 3 | PASS 162 ]
  Error:
  ! Test failures.
  Execution halted