Running 'testthat.R' [158s]
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-06 06:35:53.472096 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:36:00.802485 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-06 06:36:00.863982 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-06 06:36:01.003748 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-06 06:36:02.854343 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:36:16.996378 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-06 06:36:17.004191 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-06 06:36:17.03702 CRANWIN3 88568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-06 06:36:17.094122 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:36:19.223998 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-06 06:36:19.331516 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-06 06:36:19.51194 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-06 06:36:20.336709 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-06 06:36:20.346889 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-06 06:36:20.351907 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-06 06:36:20.355999 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-06 06:36:20.359897 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-06 06:36:20.363722 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-06 06:36:20.367265 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-06 06:36:20.432838 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-06 06:36:20.437464 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-06 06:36:20.441836 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-06 06:36:20.61922 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-06 06:36:20.626977 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-06 06:36:20.632481 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-06 06:36:20.778465 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:36:30.961976 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-06 06:36:31.045176 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-06 06:36:31.176585 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-06 06:36:31.247081 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:36:44.59263 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-06 06:36:44.656144 CRANWIN3 88568 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-06 06:36:44.8161 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-06 06:36:46.546447 CRANWIN3 88568 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-06 06:36:46.582548 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:08.287381 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-06 06:37:08.621881 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-06 06:37:11.720421 CRANWIN3 88568 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-06 06:37:11.772555 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:34.507059 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-06 06:37:34.826877 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-06 06:37:37.975057 CRANWIN3 88568 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-06 06:37:38.123721 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:41.946969 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-06 06:37:42.164233 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-06 06:37:42.183283 CRANWIN3 88568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-06 06:37:42.226479 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.721875 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:43.870787 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:43.909735 CRANWIN3 88568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-06 06:37:43.922412 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.932052 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.941395 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.950649 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.959884 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.969204 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.978487 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.98768 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:43.996117 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:45.722329 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:45.727056 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:45.750602 CRANWIN3 88568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-06 06:37:45.765544 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:47.428335 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:47.621109 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:49.921731 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:50.110926 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:51.995201 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:52.169876 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:54.166275 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:54.388479 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:54.418824 CRANWIN3 88568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-06 06:37:54.435093 CRANWIN3 88568 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-05 r84399 ucrt), detected cores: 96
  2023-05-06 06:37:55.789494 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:55.974398 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:57.296978 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:57.471176 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:58.686479 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:58.839279 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:37:59.783833 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:37:59.930143 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:38:01.151839 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:38:01.307387 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:38:02.577505 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:38:02.786552 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:38:04.167258 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 06:38:04.37674 CRANWIN3 88568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 06:38:04.404852 CRANWIN3 88568 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