Package check result: OK Changes to worse in reverse depends: Package: connector Check: dependencies in R code New result: WARNING Missing or unexported object: ‘zephyr::report_checkmate_assertions’ Package: connector Check: examples New result: ERROR Running examples in ‘connector-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: connect > ### Title: Connect to datasources specified in a config file > ### Aliases: connect > > ### ** Examples > > > withr::local_dir(withr::local_tempdir("test", .local_envir = .GlobalEnv)) > # Create dir for the example in tmpdir > dir.create("example/demo_trial/adam", recursive = TRUE) > > # Create a config file in the example folder > config <- system.file("config", "_connector.yml", package = "connector") > > # Show the raw configuration file > readLines(config) |> + cat(sep = "\n") # A example of the configuration file for FS and Database metadata: trial: "demo_trial" root_path: "example" extra_class: "test2" datasources: - name: "adam" backend: type: "connector_fs" path: "{metadata.root_path}/{metadata.trial}/adam" extra_class: "{metadata.extra_class}" - name: "sdtm" backend: type: "connector_dbi" drv: "RSQLite::SQLite()" dbname: ":memory:" > > # Connect to the datasources specified in it > cnts <- connect(config) Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Execution halted Ran 3/3 deferred expressions Package: connector Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘Consistent-API.Rmd’ using rmarkdown --- finished re-building ‘Consistent-API.Rmd’ --- re-building ‘connector.Rmd’ using rmarkdown Quitting from connector.Rmd:106-109 [unnamed-chunk-5] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' --- Backtrace: ▆ 1. └─connector::connect() 2. ├─connector:::connect_from_config(...) 3. │ ├─rlang::set_names(...) 4. │ └─purrr::map(config$datasources, create_connection) 5. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 6. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 7. ├─connector:::filter_config(...) 8. ├─connector:::parse_config(assert_config(config), set_env = set_env) 9. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 10. └─connector:::assert_config(config) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'connector.Rmd' failed with diagnostics: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' --- failed re-building ‘connector.Rmd’ --- re-building ‘customize.Rmd’ using rmarkdown --- finished re-building ‘customize.Rmd’ --- re-building ‘without-yaml.Rmd’ using rmarkdown --- finished re-building ‘without-yaml.Rmd’ SUMMARY: processing the following file failed: ‘connector.Rmd’ Error: Vignette re-building failed. Execution halted Package: connector Check: tests New result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [6s/6s] 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(connector) > > test_check("connector") [ FAIL 16 | WARN 1 | SKIP 21 | PASS 140 ] ══ Skipped tests (21) ══════════════════════════════════════════════════════════ • On CRAN (20): 'test-cnt_logger_integration.R:2:3', 'test-connector.R:11:5', 'test-connector.R:38:5', 'test-connector.R:38:5', 'test-connector.R:38:5', 'test-connector.R:38:5', 'test-connector.R:53:5', 'test-connector.R:53:5', 'test-connector.R:53:5', 'test-connector.R:53:5', 'test-use_template.R:2:3', 'test-utils_files.R:2:3', 'test-utils_files.R:2:3', 'test-utils_files.R:2:3', 'test-utils_files.R:2:3', 'test-utils_files.R:6:3', 'test-utils_files.R:6:3', 'test-utils_files.R:6:3', 'test-utils_files.R:6:3', 'test-utils_files.R:11:3' • postgres database not available (1): 'test-dbi.R:34:9' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-cnts_datasources.R:3:3'): write_datasources works correctly ──── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. └─connector::connect(yaml_file) at test-cnts_datasources.R:3:3 2. ├─connector:::connect_from_config(...) 3. │ ├─rlang::set_names(...) 4. │ └─purrr::map(config$datasources, create_connection) 5. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 6. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 7. ├─connector:::filter_config(...) 8. ├─connector:::parse_config(assert_config(config), set_env = set_env) 9. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 10. └─connector:::assert_config(config) ── Error ('test-connect.R:3:3'): Connect datasources to the connections for a yaml file ── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. └─connector::connect(yaml_file) at test-connect.R:3:3 2. ├─connector:::connect_from_config(...) 3. │ ├─rlang::set_names(...) 4. │ └─purrr::map(config$datasources, create_connection) 5. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 6. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 7. ├─connector:::filter_config(...) 8. ├─connector:::parse_config(assert_config(config), set_env = set_env) 9. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 10. └─connector:::assert_config(config) ── Failure ('test-connect.R:62:9'): yaml config parsed correctly ─────────────── Expected `parse_config(assert_config(read_file(yaml_file_env, eval.expr = TRUE)))` to run without any conditions. i Actually got a with text: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. ├─withr::with_envvar(...) at test-connect.R:58:5 2. │ └─base::force(code) 3. └─testthat::expect_no_condition(...) at test-connect.R:62:9 ── Error ('test-connect.R:82:9'): yaml config parsed correctly ───────────────── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. ├─withr::with_envvar(...) at test-connect.R:73:5 2. │ └─base::force(code) 3. ├─base::suppressMessages(...) at test-connect.R:82:9 4. │ └─base::withCallingHandlers(...) 5. ├─testthat::expect_message(...) 6. │ └─testthat:::expect_condition_matching(...) 7. │ └─testthat:::quasi_capture(...) 8. │ ├─testthat (local) .capture(...) 9. │ │ └─base::withCallingHandlers(...) 10. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 11. ├─connector:::parse_config(...) 12. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 13. └─connector:::assert_config(read_file(yaml_file_env, eval.expr = TRUE)) ── Failure ('test-connect.R:104:3'): Using a list instead of yaml ────────────── Expected `connect(yaml_content_raw)` to run without any errors. i Actually got a with text: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' ── Failure ('test-connect.R:110:3'): Using a json instead of yaml ────────────── Expected `connect(test_path("configs", "config_json.json"))` to run without any errors. i Actually got a with text: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' ── Failure ('test-connect.R:115:3'): Using and update metadata ───────────────── Expected `connect(yaml_content_raw, metadata = list(extra_class = "test_from_metadata"))` to run without any errors. i Actually got a with text: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' ── Failure ('test-connect.R:121:3'): Using and update metadata ───────────────── test_list$adam is not an S3 object ── Failure ('test-connect.R:123:3'): Using and update metadata ───────────────── Expected `connect(yaml_file, metadata = list(extra_class = "test_from_metadata"))` to run without any errors. i Actually got a with text: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' ── Failure ('test-connect.R:129:3'): Using and update metadata ───────────────── test_yaml$adam is not an S3 object ── Error ('test-connect.R:137:3'): Add logs to connectors object ─────────────── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. └─connector::connect(yaml_file, logging = TRUE) at test-connect.R:137:3 2. ├─connector:::connect_from_config(...) 3. │ ├─rlang::set_names(...) 4. │ └─purrr::map(config$datasources, create_connection) 5. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 6. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 7. ├─connector:::filter_config(...) 8. ├─connector:::parse_config(assert_config(config), set_env = set_env) 9. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 10. └─connector:::assert_config(config) ── Error ('test-metadata_connectors.R:53:3'): extract_metadata works with connect function ── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. └─connector::connect(yaml_file) at test-metadata_connectors.R:53:3 2. ├─connector:::connect_from_config(...) 3. │ ├─rlang::set_names(...) 4. │ └─purrr::map(config$datasources, create_connection) 5. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 6. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 7. ├─connector:::filter_config(...) 8. ├─connector:::parse_config(assert_config(config), set_env = set_env) 9. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 10. └─connector:::assert_config(config) ── Error ('test-metadata_connectors.R:105:5'): print metadata infos [plain] ──── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. ├─withr::with_tempdir(...) at test-metadata_connectors.R:88:3 2. │ └─withr::with_dir(tmp, code) 3. │ └─base::force(code) 4. └─connector::connect(config = config) at test-metadata_connectors.R:105:5 5. ├─connector:::connect_from_config(...) 6. │ ├─rlang::set_names(...) 7. │ └─purrr::map(config$datasources, create_connection) 8. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 9. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 10. ├─connector:::filter_config(...) 11. ├─connector:::parse_config(assert_config(config), set_env = set_env) 12. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 13. └─connector:::assert_config(config) ── Error ('test-metadata_connectors.R:105:5'): print metadata infos [ansi] ───── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. ├─withr::with_tempdir(...) at test-metadata_connectors.R:88:3 2. │ └─withr::with_dir(tmp, code) 3. │ └─base::force(code) 4. └─connector::connect(config = config) at test-metadata_connectors.R:105:5 5. ├─connector:::connect_from_config(...) 6. │ ├─rlang::set_names(...) 7. │ └─purrr::map(config$datasources, create_connection) 8. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 9. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 10. ├─connector:::filter_config(...) 11. ├─connector:::parse_config(assert_config(config), set_env = set_env) 12. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 13. └─connector:::assert_config(config) ── Error ('test-metadata_connectors.R:105:5'): print metadata infos [unicode] ── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. ├─withr::with_tempdir(...) at test-metadata_connectors.R:88:3 2. │ └─withr::with_dir(tmp, code) 3. │ └─base::force(code) 4. └─connector::connect(config = config) at test-metadata_connectors.R:105:5 5. ├─connector:::connect_from_config(...) 6. │ ├─rlang::set_names(...) 7. │ └─purrr::map(config$datasources, create_connection) 8. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 9. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 10. ├─connector:::filter_config(...) 11. ├─connector:::parse_config(assert_config(config), set_env = set_env) 12. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 13. └─connector:::assert_config(config) ── Error ('test-metadata_connectors.R:105:5'): print metadata infos [fancy] ──── Error: 'report_checkmate_assertions' is not an exported object from 'namespace:zephyr' Backtrace: ▆ 1. ├─withr::with_tempdir(...) at test-metadata_connectors.R:88:3 2. │ └─withr::with_dir(tmp, code) 3. │ └─base::force(code) 4. └─connector::connect(config = config) at test-metadata_connectors.R:105:5 5. ├─connector:::connect_from_config(...) 6. │ ├─rlang::set_names(...) 7. │ └─purrr::map(config$datasources, create_connection) 8. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 9. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 10. ├─connector:::filter_config(...) 11. ├─connector:::parse_config(assert_config(config), set_env = set_env) 12. │ └─connector:::parse_config_helper(config[["env"]], input = list(env = env_old)) 13. └─connector:::assert_config(config) [ FAIL 16 | WARN 1 | SKIP 21 | PASS 140 ] Error: Test failures Execution halted