Running ‘testthat.R’ [146s/250s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2023-05-14 15:31:04.709423 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:31:14.8195 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-14 15:31:15.302362 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-14 15:31:15.680607 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-14 15:31:20.389865 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:31:40.535412 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-14 15:31:40.559106 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-14 15:31:40.620408 gimli2 438190 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-14 15:31:40.761064 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:31:43.848654 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-14 15:31:44.08213 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-14 15:31:44.373237 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-14 15:31:45.270389 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-14 15:31:45.281283 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-14 15:31:45.284702 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-14 15:31:45.288047 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-14 15:31:45.291609 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-14 15:31:45.295079 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-14 15:31:45.298433 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-14 15:31:45.467009 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-14 15:31:45.470243 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-14 15:31:45.473469 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-14 15:31:45.702585 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-14 15:31:45.710574 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-14 15:31:45.716534 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-14 15:31:46.016831 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:32:03.685013 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-14 15:32:03.864585 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-14 15:32:04.084474 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-14 15:32:04.313127 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:32:23.898397 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-14 15:32:24.543612 gimli2 438190 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-14 15:32:24.826858 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-14 15:32:27.896461 gimli2 438190 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-14 15:32:28.017176 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:32:56.432877 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-14 15:32:57.818863 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-14 15:33:03.34549 gimli2 438190 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-14 15:33:03.426502 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:32.157723 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-14 15:33:33.488657 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-14 15:33:38.944645 gimli2 438190 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-14 15:33:39.29803 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:44.038254 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-14 15:33:45.036291 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-14 15:33:45.080191 gimli2 438190 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-14 15:33:45.181058 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:47.810931 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:33:48.649302 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:33:48.684988 gimli2 438190 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-14 15:33:48.737688 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:48.804893 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:48.870207 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:48.940609 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:48.993986 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:49.034993 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:49.09825 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:49.158394 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:49.224598 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:52.450743 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:33:52.455744 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:33:52.499837 gimli2 438190 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-14 15:33:52.546018 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:33:55.05112 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:33:55.800001 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:33:58.116794 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:33:59.00095 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:01.795746 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:02.661845 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:06.309125 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:07.357394 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:07.528342 gimli2 438190 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-14 15:34:07.59419 gimli2 438190 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-13 r84429), detected cores: 32
  2023-05-14 15:34:09.810575 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:11.004645 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:12.498765 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:13.454795 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:15.289218 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:16.354418 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:18.222685 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:19.16779 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:21.347789 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:22.326637 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:24.556281 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:25.616611 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:27.433812 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-14 15:34:28.325108 gimli2 438190 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-14 15:34:28.355046 gimli2 438190 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 22.7748385392029, recommended min value: 46.
  [ FAIL 5 | WARN 88 | SKIP 0 | PASS 205 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-compile_pseudo_pop.R:65:3'): Compiling pseudo pop works as expected. ──
  mean(pseudo_pop_2$counter_weight) not equal to 0.7465975.
  1/1 mismatches
  [1] 0.746 - 0.747 == -0.000738
  ── Failure ('test-compute_density.R:10:3'): compute_density works ──────────────
  cd[10] not equal to 0.537411.
  1/1 mismatches
  [1] 0.537 - 0.537 == -0.000478
  ── Failure ('test-estimate_npmetric_erf.R:34:3'): estimate_npmetric_erf works as expected ──
  res$risk_val[1] not equal to 1305125.
  1/1 mismatches
  [1] 1304486 - 1305125 == -639
  ── Failure ('test-estimate_npmetric_erf.R:74:3'): estimate_npmetric_erf works as expected (with earth) ──
  res$risk_val[1] not equal to 1305125.
  1/1 mismatches
  [1] 1304486 - 1305125 == -639
  ── Failure ('test-generate_pseudo_pop.R:248:3'): generate_pseudo_pop works as expected. ──
  ps_pop3$adjusted_corr_results$mean_absolute_corr not equal to 0.3750209.
  1/1 mismatches
  [1] 0.375 - 0.375 == -1.21e-06
  
  [ FAIL 5 | WARN 88 | SKIP 0 | PASS 205 ]
  Error: Test failures
  Execution halted