Running ‘testthat.R’ [147s/254s]
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-09 15:30:07.749762 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:30:19.291076 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-09 15:30:19.768611 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-09 15:30:20.138815 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-09 15:30:23.88508 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:30:43.448505 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-09 15:30:43.456492 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-09 15:30:43.486286 gimli2 2982159 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-09 15:30:43.601231 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:30:46.563501 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-09 15:30:46.775823 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-09 15:30:46.945771 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-09 15:30:47.823853 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-09 15:30:47.835851 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-09 15:30:47.839676 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-09 15:30:47.843008 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-09 15:30:47.846356 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-09 15:30:47.856519 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-09 15:30:47.859938 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-09 15:30:48.123152 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-09 15:30:48.127138 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-09 15:30:48.131 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-09 15:30:48.30281 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-09 15:30:48.310356 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-09 15:30:48.315709 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-09 15:30:48.638175 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:31:04.959657 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-09 15:31:05.177915 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-09 15:31:05.499712 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-09 15:31:05.65704 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:31:25.70924 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-09 15:31:26.270216 gimli2 2982159 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-09 15:31:26.50615 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-09 15:31:29.357134 gimli2 2982159 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-09 15:31:29.485001 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:02.550763 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-09 15:32:04.058179 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-09 15:32:09.217034 gimli2 2982159 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-09 15:32:09.329093 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:37.856993 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-09 15:32:39.173473 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-09 15:32:44.772493 gimli2 2982159 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-09 15:32:45.185946 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:50.148883 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-09 15:32:51.376873 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-09 15:32:51.435398 gimli2 2982159 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-09 15:32:51.66112 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:54.583174 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:32:55.305475 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:32:55.334427 gimli2 2982159 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-09 15:32:55.405007 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:55.464513 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:55.512675 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:55.566371 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:55.650083 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:55.687883 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:55.749894 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:55.796878 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:55.842028 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:32:58.472301 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:32:58.47724 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:32:58.504466 gimli2 2982159 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-09 15:32:58.573098 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:33:01.843655 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:02.607133 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:05.3434 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:06.157397 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:09.556528 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:10.466563 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:13.086529 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:13.999182 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:14.04603 gimli2 2982159 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-09 15:33:14.098217 gimli2 2982159 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-08 r84402), detected cores: 32
  2023-05-09 15:33:16.313647 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:17.266952 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:18.596386 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:19.632534 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:21.70273 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:22.745923 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:24.693765 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:25.613184 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:27.45387 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:28.488297 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:30.399105 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:31.381208 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:33.143463 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 15:33:34.114686 gimli2 2982159 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 15:33:34.145091 gimli2 2982159 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