Running ‘testthat.R’ [119s/217s]
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-11 10:44:08.36061 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:44:12.605411 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-11 10:44:13.154493 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-02-11 10:44:13.497366 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-02-11 10:44:19.265221 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-02-11 10:44:19.276677 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-02-11 10:44:19.282228 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-02-11 10:44:19.287725 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-02-11 10:44:19.293326 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-02-11 10:44:19.298831 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-02-11 10:44:19.304349 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-02-11 10:44:19.466439 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-02-11 10:44:19.471468 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-02-11 10:44:19.476511 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-02-11 10:44:19.72135 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-02-11 10:44:19.731209 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-02-11 10:44:19.739642 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-02-11 10:44:20.054549 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:44:39.07462 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-11 10:44:39.177446 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-11 10:44:39.217751 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-11 10:44:41.451801 gannet.stats.ox.ac.uk 1661568 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-02-11 10:44:41.535286 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:45:07.904974 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-11 10:45:07.918922 gannet.stats.ox.ac.uk 1661568 CausalGPS FUN WARN:  There is no data to match with  -1.26798024301974 in  0.5  radius.
  2023-02-11 10:45:08.100661 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 4704)
  2023-02-11 10:46:23.585814 gannet.stats.ox.ac.uk 1661568 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.6.
  2023-02-11 10:46:25.44888 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:33.01351 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-02-11 10:46:33.797238 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-02-11 10:46:33.850794 gannet.stats.ox.ac.uk 1661568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-02-11 10:46:34.097774 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:38.751096 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:46:40.083075 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:46:40.131982 gannet.stats.ox.ac.uk 1661568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-02-11 10:46:40.179275 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.238742 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.330051 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.363637 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.422352 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.495364 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.579569 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.645737 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.727535 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:40.80473 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:44.341409 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:46:44.35112 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:46:44.440536 gannet.stats.ox.ac.uk 1661568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24085816396445, recommended min value: 46.
  2023-02-11 10:46:44.516686 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:46:47.902926 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:46:48.569967 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:46:52.51751 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:46:53.094459 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:46:56.736521 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:46:57.276518 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:01.150208 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:47:01.837088 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:01.934579 gannet.stats.ox.ac.uk 1661568 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-02-11 10:47:02.050704 gannet.stats.ox.ac.uk 1661568 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-09 r83797), detected cores: 24
  2023-02-11 10:47:04.586577 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:47:05.072637 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:07.464619 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:47:07.929889 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:10.664854 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:47:11.162848 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:13.415346 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:47:14.069062 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:16.067116 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:47:16.515405 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:18.577156 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:47:19.0539 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:21.829004 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-11 10:47:22.281857 gannet.stats.ox.ac.uk 1661568 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-11 10:47:22.335043 gannet.stats.ox.ac.uk 1661568 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