Running ‘testthat.R’ [106s/157s]
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-15 07:01:49.998611 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:01:55.29755 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-15 07:01:55.742562 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-02-15 07:01:56.123214 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-02-15 07:02:03.314742 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-02-15 07:02:03.327436 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-02-15 07:02:03.33752 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-02-15 07:02:03.343399 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-02-15 07:02:03.362551 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-02-15 07:02:03.368429 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-02-15 07:02:03.387508 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-02-15 07:02:03.709846 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-02-15 07:02:03.715293 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-02-15 07:02:03.720814 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-02-15 07:02:04.068823 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-02-15 07:02:04.08231 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-02-15 07:02:04.090427 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-02-15 07:02:04.389702 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:02:23.000299 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-15 07:02:23.127653 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-15 07:02:23.190635 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-15 07:02:25.769161 gannet.stats.ox.ac.uk 4064448 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-02-15 07:02:25.846614 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:02:49.226761 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-15 07:02:49.239861 gannet.stats.ox.ac.uk 4064448 CausalGPS FUN WARN:  There is no data to match with  -1.26798024301974 in  0.5  radius.
  2023-02-15 07:02:49.372532 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 4704)
  2023-02-15 07:03:35.057896 gannet.stats.ox.ac.uk 4064448 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.6.
  2023-02-15 07:03:36.272696 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:41.541012 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-02-15 07:03:42.042892 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-02-15 07:03:42.06911 gannet.stats.ox.ac.uk 4064448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-02-15 07:03:42.168194 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:44.660598 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:03:45.312244 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:03:45.337386 gannet.stats.ox.ac.uk 4064448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-02-15 07:03:45.364685 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.393036 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.4221 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.450294 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.4799 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.508995 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.538728 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.571629 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.600753 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:45.628581 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:48.530237 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:03:48.537987 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:03:48.620561 gannet.stats.ox.ac.uk 4064448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24085816396445, recommended min value: 46.
  2023-02-15 07:03:48.646833 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:03:51.279211 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:03:51.737017 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:03:54.515103 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:03:54.779403 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:03:56.921637 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:03:57.256083 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:03:59.178496 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:03:59.422535 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:03:59.44994 gannet.stats.ox.ac.uk 4064448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-02-15 07:03:59.47962 gannet.stats.ox.ac.uk 4064448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:04:00.59999 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:04:00.987212 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:04:02.053537 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:04:02.385326 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:04:03.48121 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:04:03.811631 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:04:04.880099 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:04:05.269688 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:04:07.042501 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:04:07.43484 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:04:09.304909 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:04:09.572259 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:04:10.63354 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:04:10.971486 gannet.stats.ox.ac.uk 4064448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:04:10.987041 gannet.stats.ox.ac.uk 4064448 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