Running 'testthat.R' [155s]
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-12 06:56:07.92595 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:56:14.986155 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-12 06:56:15.048368 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-12 06:56:15.190464 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-12 06:56:17.415932 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:56:30.886127 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-12 06:56:30.893441 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-12 06:56:30.9256 CRANWIN3 166980 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-12 06:56:30.975535 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:56:33.04837 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-12 06:56:33.138964 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-12 06:56:33.28886 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-12 06:56:34.223561 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-12 06:56:34.230861 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-12 06:56:34.234786 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-12 06:56:34.23862 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-12 06:56:34.242432 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-12 06:56:34.24623 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-12 06:56:34.250046 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-12 06:56:34.309524 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-12 06:56:34.314538 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-12 06:56:34.319363 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-12 06:56:34.472352 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-12 06:56:34.478749 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-12 06:56:34.483628 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-12 06:56:34.617699 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:56:45.545889 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-12 06:56:45.618643 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-12 06:56:45.761065 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-12 06:56:45.845809 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:56:59.046141 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-12 06:56:59.124435 CRANWIN3 166980 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-12 06:56:59.305474 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-12 06:57:00.875889 CRANWIN3 166980 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-12 06:57:00.903781 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:20.507729 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-12 06:57:20.903023 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-12 06:57:23.792285 CRANWIN3 166980 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-12 06:57:23.844289 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:44.311638 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-12 06:57:44.639529 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-12 06:57:47.67598 CRANWIN3 166980 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-12 06:57:47.833588 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:52.575679 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-12 06:57:52.942372 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-12 06:57:52.970747 CRANWIN3 166980 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-12 06:57:53.040878 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.244025 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:57:55.443753 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:57:55.473141 CRANWIN3 166980 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-12 06:57:55.487404 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.49899 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.510556 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.523353 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.537599 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.552685 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.567921 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.582792 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:55.593536 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:57.830812 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:57:57.836614 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:57:57.866371 CRANWIN3 166980 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-12 06:57:57.885261 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:57:59.993314 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:00.19923 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:02.097089 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:02.297661 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:04.234087 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:04.401022 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:06.404659 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:06.628293 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:06.660593 CRANWIN3 166980 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-12 06:58:06.67774 CRANWIN3 166980 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-11 r84422 ucrt), detected cores: 96
  2023-05-12 06:58:07.985566 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:08.157533 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:09.510261 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:09.684263 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:10.896716 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:11.108475 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:12.191235 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:12.337024 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:13.384784 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:13.60665 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:14.940987 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:15.135545 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:16.540157 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 06:58:16.771814 CRANWIN3 166980 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 06:58:16.78622 CRANWIN3 166980 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