Running 'testthat.R' [161s]
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-13 06:26:30.323846 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:26:38.092896 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-13 06:26:38.174718 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-13 06:26:38.345122 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-13 06:26:40.640675 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:26:54.195026 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-13 06:26:54.200975 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-13 06:26:54.228209 CRANWIN3 164132 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-13 06:26:54.275335 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:26:56.297268 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-13 06:26:56.417985 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-13 06:26:56.542062 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-13 06:26:57.389947 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-13 06:26:57.396036 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-13 06:26:57.399029 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-13 06:26:57.401957 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-13 06:26:57.404967 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-13 06:26:57.407976 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-13 06:26:57.410916 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-13 06:26:57.466458 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-13 06:26:57.469132 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-13 06:26:57.472023 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-13 06:26:57.61751 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-13 06:26:57.623725 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-13 06:26:57.628426 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-13 06:26:57.781264 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:27:08.475844 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-13 06:27:08.538886 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-13 06:27:08.687378 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-13 06:27:08.768892 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:27:22.618061 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-13 06:27:22.691755 CRANWIN3 164132 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-13 06:27:22.872664 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-13 06:27:24.492809 CRANWIN3 164132 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-13 06:27:24.530307 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:27:46.432625 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-13 06:27:46.791401 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-13 06:27:49.948729 CRANWIN3 164132 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-13 06:27:49.9925 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:12.026381 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-13 06:28:12.388585 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-13 06:28:15.442013 CRANWIN3 164132 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-13 06:28:15.587827 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:19.847642 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-13 06:28:20.130503 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-13 06:28:20.173013 CRANWIN3 164132 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-13 06:28:20.236591 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.282906 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:22.46884 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:22.496664 CRANWIN3 164132 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-13 06:28:22.510795 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.522822 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.534424 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.54583 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.557363 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.568697 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.58024 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.591493 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:22.60137 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:24.835665 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:24.840414 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:24.887404 CRANWIN3 164132 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-13 06:28:24.906205 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:26.845391 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:26.995323 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:28.994125 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:29.234352 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:31.236726 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:31.438731 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:33.560504 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:33.793123 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:33.819926 CRANWIN3 164132 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-13 06:28:33.835153 CRANWIN3 164132 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-12 r84428 ucrt), detected cores: 96
  2023-05-13 06:28:35.047554 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:35.210103 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:36.369978 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:36.545694 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:37.759384 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:38.319506 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:39.585803 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:39.774744 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:41.102199 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:41.305475 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:42.631948 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:42.83092 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:44.124437 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 06:28:44.286784 CRANWIN3 164132 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 06:28:44.300547 CRANWIN3 164132 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