Running ‘testthat.R’ [123s/211s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  OMP: Warning #96: Cannot form a team with 8 threads, using 2 instead.
  OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
  2023-02-08 10:22:27.867008 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:22:31.909447 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-08 10:22:32.228663 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-02-08 10:22:32.608531 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-02-08 10:22:40.759359 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-02-08 10:22:40.780095 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-02-08 10:22:40.794579 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-02-08 10:22:40.799938 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-02-08 10:22:40.813831 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-02-08 10:22:40.829007 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-02-08 10:22:40.83478 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-02-08 10:22:41.105483 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-02-08 10:22:41.114853 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-02-08 10:22:41.120346 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-02-08 10:22:41.519101 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-02-08 10:22:41.5308 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-02-08 10:22:41.539792 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-02-08 10:22:41.870404 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:23:08.993691 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-08 10:23:09.197277 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-08 10:23:09.274985 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-08 10:23:13.321029 gannet.stats.ox.ac.uk 4036321 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-02-08 10:23:13.439255 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:23:43.982537 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-08 10:23:44.006181 gannet.stats.ox.ac.uk 4036321 CausalGPS FUN WARN:  There is no data to match with  -1.26798024301974 in  0.5  radius.
  2023-02-08 10:23:44.167418 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 4704)
  2023-02-08 10:24:45.436174 gannet.stats.ox.ac.uk 4036321 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.6.
  2023-02-08 10:24:46.96596 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:24:54.529122 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-02-08 10:24:55.508746 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-02-08 10:24:55.57699 gannet.stats.ox.ac.uk 4036321 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-02-08 10:24:55.746593 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:24:59.455254 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:00.812096 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:00.858237 gannet.stats.ox.ac.uk 4036321 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-02-08 10:25:00.932989 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:00.992513 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:01.052031 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:01.110053 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:01.168988 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:01.22702 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:01.287072 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:01.34703 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:01.414115 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:01.48669 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:05.301522 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:05.311482 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:05.418649 gannet.stats.ox.ac.uk 4036321 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24085816396445, recommended min value: 46.
  2023-02-08 10:25:05.483201 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:09.321236 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:09.946781 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:13.7964 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:14.386741 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:17.811492 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:18.356302 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:21.504625 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:21.888224 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:21.934147 gannet.stats.ox.ac.uk 4036321 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-02-08 10:25:21.984091 gannet.stats.ox.ac.uk 4036321 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83777), detected cores: 24
  2023-02-08 10:25:23.718756 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:24.144734 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:25.942619 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:26.289269 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:28.019738 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:28.422938 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:30.154397 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:30.558362 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:32.409674 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:32.818362 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:34.527611 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:34.987623 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:36.703444 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 10:25:37.03919 gannet.stats.ox.ac.uk 4036321 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 10:25:37.059116 gannet.stats.ox.ac.uk 4036321 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