Running ‘testthat.R’ [74s/162s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2023-02-08 15:19:27.891378 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:19:31.429916 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-08 15:19:31.667975 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-02-08 15:19:31.839968 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-02-08 15:19:36.404299 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-02-08 15:19:36.417037 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-02-08 15:19:36.420496 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-02-08 15:19:36.424233 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-02-08 15:19:36.429788 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-02-08 15:19:36.433384 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-02-08 15:19:36.43874 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-02-08 15:19:36.636355 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-02-08 15:19:36.639852 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-02-08 15:19:36.643499 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-02-08 15:19:36.857104 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-02-08 15:19:36.88224 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-02-08 15:19:36.888515 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-02-08 15:19:37.274126 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:19:53.568036 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-08 15:19:53.699046 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-08 15:19:53.808308 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-08 15:19:55.682905 gimli2 3076197 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-02-08 15:19:55.836337 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:20:19.814607 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-08 15:20:19.823661 gimli2 3076197 CausalGPS FUN WARN:  There is no data to match with  -1.26798024301974 in  0.5  radius.
  2023-02-08 15:20:19.984398 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 4704)
  2023-02-08 15:21:03.170049 gimli2 3076197 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.6.
  2023-02-08 15:21:04.221058 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:10.120461 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-02-08 15:21:11.074459 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-02-08 15:21:11.122052 gimli2 3076197 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-02-08 15:21:11.349117 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:14.368977 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:15.202358 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:15.230392 gimli2 3076197 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-02-08 15:21:15.317026 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.386089 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.445733 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.500906 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.547805 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.599019 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.649463 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.705108 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.749707 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:15.830195 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:17.926528 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:17.931484 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:17.993716 gimli2 3076197 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24085816396445, recommended min value: 46.
  2023-02-08 15:21:18.111783 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:20.79637 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:21.657082 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:25.238177 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:26.338376 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:29.417517 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:30.350083 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:33.402514 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:34.17891 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:34.209307 gimli2 3076197 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-02-08 15:21:34.26194 gimli2 3076197 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-02-07 r83776), detected cores: 32
  2023-02-08 15:21:36.44625 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:37.437161 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:39.372324 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:40.353284 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:42.325633 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:43.244226 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:44.779953 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:45.725479 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:47.191732 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:48.547389 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:49.779973 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:50.667322 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:52.039266 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 15:21:52.944734 gimli2 3076197 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 15:21:52.958271 gimli2 3076197 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 22.7748385392029, recommended min value: 46.
  [ FAIL 8 | WARN 24 | SKIP 3 | PASS 196 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • earth cannot be loaded (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-absolute_weighted_corr_fun.R:10'): absoulte_weighted_corr_fun works as expected. ──
  val1$mean_absolute_corr not equal to 0.09003267.
  1/1 mismatches
  [1] 0.0851 - 0.09 == -0.00489
  ── Failure ('test-absolute_weighted_corr_fun.R:11'): absoulte_weighted_corr_fun works as expected. ──
  val1$median_absolute_corr not equal to 0.07821234.
  1/1 mismatches
  [1] 0.0691 - 0.0782 == -0.00908
  ── Failure ('test-absolute_weighted_corr_fun.R:12'): absoulte_weighted_corr_fun works as expected. ──
  val1$maximal_absolute_corr not equal to 0.2222087.
  1/1 mismatches
  [1] 0.218 - 0.222 == -0.00434
  ── Failure ('test-generate_pseudo_pop.R:37'): generate_pseudo_pop works as expected. ──
  ps_pop1$adjusted_corr_results$mean_absolute_corr not equal to 0.2580037.
  1/1 mismatches
  [1] 0.258 - 0.258 == 4.44e-05
  ── Failure ('test-generate_pseudo_pop.R:75'): generate_pseudo_pop works as expected. ──
  ps_pop2$adjusted_corr_results$mean_absolute_corr not equal to 0.2243034.
  1/1 mismatches
  [1] 0.224 - 0.224 == -0.000124
  ── Failure ('test-generate_pseudo_pop.R:279'): generate_pseudo_pop works as expected. ──
  ps_pop3$adjusted_corr_results$mean_absolute_corr not equal to 0.4481222.
  1/1 mismatches
  [1] 0.375 - 0.448 == -0.0731
  ── Failure ('test-generate_pseudo_pop.R:306'): generate_pseudo_pop works as expected. ──
  ps_pop4$adjusted_corr_results$mean_absolute_corr not equal to 0.2210705.
  1/1 mismatches
  [1] 0.221 - 0.221 == -9.3e-05
  ── Failure ('test-generate_pseudo_pop.R:333'): generate_pseudo_pop works as expected. ──
  ps_pop5$adjusted_corr_results$mean_absolute_corr not equal to 0.1078871.
  1/1 mismatches
  [1] 0.108 - 0.108 == -0.000196
  
  [ FAIL 8 | WARN 24 | SKIP 3 | PASS 196 ]
  Error: Test failures
  Execution halted