Running 'testthat.R' [153s]
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-08 05:37:01.643765 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:37:09.465336 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-08 05:37:09.533189 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-08 05:37:09.657888 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-08 05:37:11.828779 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:37:24.710139 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-08 05:37:24.716144 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-08 05:37:24.739758 CRANWIN3 34716 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-08 05:37:24.782912 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:37:26.635803 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-08 05:37:26.717744 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-08 05:37:26.863439 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-08 05:37:27.752821 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-08 05:37:27.758211 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-08 05:37:27.761223 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-08 05:37:27.764117 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-08 05:37:27.766985 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-08 05:37:27.76985 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-08 05:37:27.772734 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-08 05:37:27.822032 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-08 05:37:27.825231 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-08 05:37:27.828442 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-08 05:37:27.985404 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-08 05:37:27.994512 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-08 05:37:28.001324 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-08 05:37:28.185986 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:37:38.651929 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-08 05:37:38.708411 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-08 05:37:38.833171 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-08 05:37:38.895554 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:37:52.509011 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-08 05:37:52.559604 CRANWIN3 34716 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-08 05:37:52.717169 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-08 05:37:54.330682 CRANWIN3 34716 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-08 05:37:54.367493 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:13.841979 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-08 05:38:14.184883 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-08 05:38:17.419463 CRANWIN3 34716 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-08 05:38:17.462679 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:38.176657 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-08 05:38:38.412952 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-08 05:38:41.487674 CRANWIN3 34716 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-08 05:38:41.615189 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:45.557641 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-08 05:38:45.812339 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-08 05:38:45.852567 CRANWIN3 34716 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-08 05:38:45.919287 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:47.767197 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:38:47.940193 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:38:47.962308 CRANWIN3 34716 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-08 05:38:47.97189 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:47.979864 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:47.987631 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:47.995562 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:48.003598 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:48.011502 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:48.019557 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:48.027569 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:48.036351 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:50.022166 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:38:50.028213 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:38:50.076185 CRANWIN3 34716 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-08 05:38:50.095898 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:52.272793 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:38:52.422173 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:38:53.928634 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:38:54.087662 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:38:55.876967 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:38:56.03562 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:38:57.93847 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:38:58.137428 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:38:58.174173 CRANWIN3 34716 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-08 05:38:58.193006 CRANWIN3 34716 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-05-06 r84401 ucrt), detected cores: 96
  2023-05-08 05:38:59.53722 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:38:59.709904 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:39:00.902002 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:39:01.024357 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:39:02.190882 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:39:02.659146 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:39:03.743665 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:39:03.907898 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:39:05.001951 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:39:05.131055 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:39:06.173372 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:39:06.335801 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:39:07.51531 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-08 05:39:07.728309 CRANWIN3 34716 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-08 05:39:07.743572 CRANWIN3 34716 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