Package: BFS Check: tests New result: ERROR Running ‘testthat.R’ [18s/125s] 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(BFS) > > test_check("BFS") ==>---------------------------- 8% | ETA: 29s =====>------------------------- 18% | ETA: 24s =========>--------------------- 29% | ETA: 20s ============>------------------ 40% | ETA: 17s ===============>--------------- 51% | ETA: 14s ===================>----------- 62% | ETA: 10s ======================>-------- 73% | ETA: 8s =========================>----- 83% | ETA: 5s ============================>-- 95% | ETA: 2s [ FAIL 7 | WARN 1 | SKIP 0 | PASS 38 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-bfs_get_base_maps.R:5:3'): Get Switzerland base map data as sf works ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "suis") at test-bfs_get_base_maps.R:5:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:13:3'): Get Cantons base map data as sf works ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "kant") at test-bfs_get_base_maps.R:13:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:21:3'): Get Canton Capitals base map data as sf works ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "stkt", type = "Pnts", category = "kk") at test-bfs_get_base_maps.R:21:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:29:3'): Get Lake base map data as sf works ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "seen", category = "11") at test-bfs_get_base_maps.R:29:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:43:3'): bfs_get_base_maps() with gf_ch category ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "suis", category = "gf_ch") at test-bfs_get_base_maps.R:43:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:51:3'): bfs_get_base_maps() with 'polg' geom and date ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: argument is of length zero Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "polg", date = "20230101") at test-bfs_get_base_maps.R:51:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:59:3'): bfs_get_base_maps() with 'polg' geom and recent date different ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "kant", most_recent = TRUE) at test-bfs_get_base_maps.R:59:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) [ FAIL 7 | WARN 1 | SKIP 0 | PASS 38 ] Error: Test failures Execution halted Package: parameters Check: tests New result: ERROR Running ‘testthat.R’ [102s/56s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(parameters) > library(testthat) > > test_check("parameters") Starting 2 test processes [ FAIL 1 | WARN 0 | SKIP 112 | PASS 673 ] ══ Skipped tests (112) ═════════════════════════════════════════════════════════ • On CRAN (100): 'test-GLMMadaptive.R:1:1', 'test-backticks.R:1:1', 'test-bootstrap_emmeans.R:1:1', 'test-bootstrap_parameters.R:1:1', 'test-brms.R:1:1', 'test-compare_parameters.R:91:7', 'test-compare_parameters.R:95:5', 'test-complete_separation.R:15:7', 'test-complete_separation.R:27:7', 'test-complete_separation.R:40:7', 'test-efa.R:1:1', 'test-emmGrid-df_colname.R:1:1', 'test-equivalence_test.R:10:3', 'test-equivalence_test.R:18:3', 'test-equivalence_test.R:82:3', 'test-format_model_parameters2.R:2:3', 'test-gam.R:30:1', 'test-get_scores.R:1:1', 'test-glmer.R:1:1', 'test-glmmTMB-2.R:1:1', 'test-glmmTMB-profile_CI.R:2:3', 'test-glmmTMB.R:8:1', 'test-helper.R:1:1', 'test-ivreg.R:54:3', 'test-include_reference.R:15:3', 'test-include_reference.R:67:3', 'test-lmerTest.R:1:1', 'test-mipo.R:19:3', 'test-mipo.R:33:3', 'test-mmrm.R:1:1', 'test-model_parameters.anova.R:1:1', 'test-model_parameters.aov.R:1:1', 'test-model_parameters.aov_es_ci.R:158:3', 'test-model_parameters.aov_es_ci.R:269:3', 'test-model_parameters.aov_es_ci.R:319:3', 'test-model_parameters.aov_es_ci.R:372:3', 'test-marginaleffects.R:113:3', 'test-model_parameters.bracl.R:5:1', 'test-model_parameters.cgam.R:1:1', 'test-model_parameters.coxme.R:1:1', 'test-model_parameters.epi2x2.R:1:1', 'test-model_parameters.fixest.R:2:3', 'test-model_parameters.fixest.R:77:3', 'test-model_parameters.fixest_multi.R:3:1', 'test-model_parameters.ggeffects.R:12:3', 'test-model_parameters.glmgee.R:1:1', 'test-model_parameters.glm.R:40:3', 'test-model_parameters.glm.R:68:3', 'test-model_parameters.logistf.R:1:1', 'test-model_parameters.mclogit.R:5:1', 'test-model_parameters.mediate.R:32:3', 'test-model_parameters.mixed.R:2:1', 'test-model_parameters.nnet.R:5:1', 'test-model_parameters_df.R:1:1', 'test-model_parameters.vgam.R:3:1', 'test-model_parameters_ordinal.R:1:1', 'test-model_parameters_random_pars.R:1:1', 'test-model_parameters_std.R:1:1', 'test-model_parameters_std_mixed.R:3:1', 'test-n_factors.R:10:3', 'test-n_factors.R:26:3', 'test-n_factors.R:76:3', 'test-p_adjust.R:1:1', 'test-p_direction.R:1:1', 'test-p_significance.R:1:1', 'test-p_value.R:14:1', 'test-panelr.R:1:1', 'test-pipe.R:1:1', 'test-pca.R:66:3', 'test-plm.R:111:3', 'test-posterior.R:2:1', 'test-print_AER_labels.R:8:3', 'test-printing-stan.R:2:1', 'test-printing.R:1:1', 'test-pool_parameters.R:11:3', 'test-pool_parameters.R:32:1', 'test-quantreg.R:1:1', 'test-random_effects_ci.R:4:1', 'test-printing2.R:15:7', 'test-printing2.R:22:7', 'test-printing2.R:27:7', 'test-printing2.R:32:7', 'test-printing2.R:37:7', 'test-printing2.R:49:7', 'test-printing2.R:91:7', 'test-rstanarm.R:3:1', 'test-robust.R:2:1', 'test-serp.R:17:5', 'test-svylme.R:1:1', 'test-visualisation_recipe.R:7:3', 'test-weightit.R:23:3', 'test-weightit.R:43:3', 'test-standardize_parameters.R:31:3', 'test-standardize_parameters.R:36:3', 'test-standardize_parameters.R:61:3', 'test-standardize_parameters.R:175:3', 'test-standardize_parameters.R:300:3', 'test-standardize_parameters.R:334:3', 'test-standardize_parameters.R:428:3', 'test-standardize_parameters.R:518:3' • On Linux (5): 'test-model_parameters.BFBayesFactor.R:1:1', 'test-nestedLogit.R:78:3', 'test-random_effects_ci-glmmTMB.R:3:1', 'test-simulate_model.R:1:1', 'test-simulate_parameters.R:1:1' • TODO: fix this test (1): 'test-model_parameters.lqmm.R:40:3' • TODO: this one actually is not correct. (1): 'test-model_parameters_robust.R:129:3' • empty test (5): 'test-wrs2.R:8:1', 'test-wrs2.R:18:1', 'test-wrs2.R:30:1', 'test-wrs2.R:43:1', 'test-wrs2.R:55:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-marginaleffects.R:12:3'): marginaleffects() ────────────────── all(cols %in% colnames(out)) is not TRUE `actual`: FALSE `expected`: TRUE [ FAIL 1 | WARN 0 | SKIP 112 | PASS 673 ] Deleting unused snapshots: • equivalence_test/equivalence-test-1.svg • equivalence_test/equivalence-test-2.svg • equivalence_test/equivalence-test-3.svg • equivalence_test/equivalence-test-4.svg • equivalence_test/equivalence-test-5.svg Error: Test failures Execution halted