Running 'testthat.R' [190s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2023-02-10 08:33:16.815848 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:33:20.189367 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-10 08:33:20.481121 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-02-10 08:33:20.789797 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-02-10 08:33:25.597766 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-02-10 08:33:25.608753 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-02-10 08:33:25.615257 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-02-10 08:33:25.621998 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-02-10 08:33:25.628784 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-02-10 08:33:25.635167 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-02-10 08:33:25.641163 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-02-10 08:33:25.756397 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-02-10 08:33:25.76306 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-02-10 08:33:25.769693 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-02-10 08:33:26.082068 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-02-10 08:33:26.092179 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-02-10 08:33:26.102469 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-02-10 08:33:26.320453 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:33:43.778749 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-10 08:33:43.863819 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-10 08:33:43.91145 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-10 08:33:46.46558 CRANWIN2 109048 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-02-10 08:33:46.509806 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:34:12.402654 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-10 08:34:12.41581 CRANWIN2 109048 CausalGPS FUN WARN:  There is no data to match with  -1.26798024301974 in  0.5  radius.
  2023-02-10 08:34:12.588609 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 4704)
  2023-02-10 08:35:20.69308 CRANWIN2 109048 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.6.
  2023-02-10 08:35:22.325791 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:29.048465 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-02-10 08:35:29.651321 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-02-10 08:35:29.740142 CRANWIN2 109048 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-02-10 08:35:29.875089 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:33.833031 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:35:34.161771 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:35:34.205816 CRANWIN2 109048 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-02-10 08:35:34.232976 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.24944 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.270681 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.292246 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.310716 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.328399 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.347784 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.367401 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.38508 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:34.401239 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:37.753128 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:35:37.762344 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:35:37.808512 CRANWIN2 109048 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24085816396445, recommended min value: 46.
  2023-02-10 08:35:37.834582 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:41.14977 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:35:41.437827 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:35:44.820923 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:35:45.125344 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:35:48.528877 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:35:48.865762 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:35:52.299365 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:35:52.650887 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:35:52.71457 CRANWIN2 109048 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-02-10 08:35:52.745952 CRANWIN2 109048 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86-64, user: CRAN, R Under development (unstable) (2023-02-09 r83797 ucrt), detected cores: 56
  2023-02-10 08:35:54.863023 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:35:55.219324 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:35:57.29601 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:35:57.642086 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:35:59.643029 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:36:00.025973 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:36:02.003318 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:36:02.317624 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:36:04.361131 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:36:04.695895 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:36:06.742912 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:36:07.09856 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:36:09.200449 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-10 08:36:09.550395 CRANWIN2 109048 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-10 08:36:09.568382 CRANWIN2 109048 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 22.7748385392029, recommended min value: 46.
  [ FAIL 8 | WARN 24 | SKIP 3 | PASS 196 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • earth cannot be loaded (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-absolute_weighted_corr_fun.R:10'): absoulte_weighted_corr_fun works as expected. ──
  val1$mean_absolute_corr not equal to 0.09003267.
  1/1 mismatches
  [1] 0.0851 - 0.09 == -0.00489
  ── Failure ('test-absolute_weighted_corr_fun.R:11'): absoulte_weighted_corr_fun works as expected. ──
  val1$median_absolute_corr not equal to 0.07821234.
  1/1 mismatches
  [1] 0.0691 - 0.0782 == -0.00908
  ── Failure ('test-absolute_weighted_corr_fun.R:12'): absoulte_weighted_corr_fun works as expected. ──
  val1$maximal_absolute_corr not equal to 0.2222087.
  1/1 mismatches
  [1] 0.218 - 0.222 == -0.00434
  ── Failure ('test-generate_pseudo_pop.R:37'): generate_pseudo_pop works as expected. ──
  ps_pop1$adjusted_corr_results$mean_absolute_corr not equal to 0.2580037.
  1/1 mismatches
  [1] 0.258 - 0.258 == 4.44e-05
  ── Failure ('test-generate_pseudo_pop.R:75'): generate_pseudo_pop works as expected. ──
  ps_pop2$adjusted_corr_results$mean_absolute_corr not equal to 0.2243034.
  1/1 mismatches
  [1] 0.224 - 0.224 == -0.000124
  ── Failure ('test-generate_pseudo_pop.R:279'): generate_pseudo_pop works as expected. ──
  ps_pop3$adjusted_corr_results$mean_absolute_corr not equal to 0.4481222.
  1/1 mismatches
  [1] 0.375 - 0.448 == -0.0731
  ── Failure ('test-generate_pseudo_pop.R:306'): generate_pseudo_pop works as expected. ──
  ps_pop4$adjusted_corr_results$mean_absolute_corr not equal to 0.2210705.
  1/1 mismatches
  [1] 0.221 - 0.221 == -9.3e-05
  ── Failure ('test-generate_pseudo_pop.R:333'): generate_pseudo_pop works as expected. ──
  ps_pop5$adjusted_corr_results$mean_absolute_corr not equal to 0.1078871.
  1/1 mismatches
  [1] 0.108 - 0.108 == -0.000196
  
  [ FAIL 8 | WARN 24 | SKIP 3 | PASS 196 ]
  Error: Test failures
  Execution halted