Running 'testthat.R' [212s]
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-03 06:55:39.167217 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:55:49.948046 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-03 06:55:50.017488 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-03 06:55:50.230241 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-03 06:55:53.35956 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:56:10.769873 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-03 06:56:10.781475 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-03 06:56:10.818008 CRANWIN3 28068 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-03 06:56:10.911771 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:56:13.389738 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-03 06:56:13.512417 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-03 06:56:13.714876 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-03 06:56:14.753007 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-03 06:56:14.761294 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-03 06:56:14.765975 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-03 06:56:14.770618 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-03 06:56:14.775103 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-03 06:56:14.779543 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-03 06:56:14.784226 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-03 06:56:14.849324 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-03 06:56:14.853591 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-03 06:56:14.857741 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-03 06:56:14.998104 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-03 06:56:15.004843 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-03 06:56:15.009869 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-03 06:56:15.143514 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:56:28.303595 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-03 06:56:28.383243 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-03 06:56:28.596061 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-03 06:56:28.716541 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:56:47.268229 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-03 06:56:47.340162 CRANWIN3 28068 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-03 06:56:47.508484 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-03 06:56:49.787273 CRANWIN3 28068 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-03 06:56:49.843211 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:57:19.105892 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-03 06:57:19.557112 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-03 06:57:23.965614 CRANWIN3 28068 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-03 06:57:24.039359 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:57:54.319815 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-03 06:57:54.880654 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-03 06:57:58.94342 CRANWIN3 28068 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-03 06:57:59.097272 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:04.353147 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-03 06:58:04.860216 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-03 06:58:04.905788 CRANWIN3 28068 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-03 06:58:05.020771 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.226667 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:07.43317 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:07.467183 CRANWIN3 28068 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-03 06:58:07.483445 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.497721 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.511685 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.526651 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.543685 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.557372 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.571114 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.587946 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:07.60211 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:10.29262 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:10.299576 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:10.339413 CRANWIN3 28068 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-03 06:58:10.357481 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:13.138079 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:13.417033 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:16.345241 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:16.536086 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:19.091382 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:19.623492 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:22.269014 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:22.530731 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:22.566616 CRANWIN3 28068 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-03 06:58:22.578284 CRANWIN3 28068 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-02 r84382 ucrt), detected cores: 96
  2023-05-03 06:58:23.990889 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:24.221848 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:26.157969 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:26.476975 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:28.359138 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:28.663186 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:30.287967 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:30.582753 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:32.333327 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:32.592863 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:34.232251 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:34.462318 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:35.90423 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 06:58:36.164527 CRANWIN3 28068 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 06:58:36.180945 CRANWIN3 28068 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