Running ‘testthat.R’ [234s/281s]
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-05-15 07:11:01.711372 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:11:14.388084 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-15 07:11:14.558499 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-15 07:11:14.801091 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-15 07:11:19.228256 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:11:40.585305 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-15 07:11:40.596669 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-15 07:11:40.641815 gannet.stats.ox.ac.uk 2351523 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-15 07:11:40.791734 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:11:44.140145 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-15 07:11:44.611229 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-15 07:11:44.980381 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-15 07:11:46.541813 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-15 07:11:46.552799 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-15 07:11:46.558403 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-15 07:11:46.564066 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-15 07:11:46.569546 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-15 07:11:46.574659 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-15 07:11:46.579891 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-15 07:11:46.853647 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-15 07:11:46.859256 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-15 07:11:46.864664 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-15 07:11:47.132871 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-15 07:11:47.143481 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-15 07:11:47.151447 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-15 07:11:47.474093 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:12:04.925033 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-15 07:12:05.142572 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-15 07:12:05.387122 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-15 07:12:05.549292 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:12:27.683981 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-15 07:12:27.913176 gannet.stats.ox.ac.uk 2351523 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-15 07:12:28.23368 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-15 07:12:30.890935 gannet.stats.ox.ac.uk 2351523 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-15 07:12:30.995504 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:13:05.675694 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-15 07:13:06.502627 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-15 07:13:14.082317 gannet.stats.ox.ac.uk 2351523 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-15 07:13:14.262421 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:13:50.416504 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-15 07:13:51.293842 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-15 07:13:59.408014 gannet.stats.ox.ac.uk 2351523 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-15 07:13:59.680307 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:06.34092 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-15 07:14:07.133334 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-15 07:14:07.197929 gannet.stats.ox.ac.uk 2351523 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-15 07:14:07.3804 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:11.543351 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:11.988469 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:12.087817 gannet.stats.ox.ac.uk 2351523 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-15 07:14:12.16557 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:12.244125 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:12.311544 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:12.388001 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:12.480474 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:12.554445 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:12.629591 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:12.722379 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:12.794415 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:16.671165 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:16.679627 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:16.726305 gannet.stats.ox.ac.uk 2351523 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-15 07:14:16.796846 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:20.836972 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:21.369233 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:25.768915 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:26.252385 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:30.544736 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:31.034642 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:35.877923 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:36.439195 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:36.516807 gannet.stats.ox.ac.uk 2351523 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-15 07:14:36.567742 gannet.stats.ox.ac.uk 2351523 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 07:14:38.588708 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:39.249991 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:41.593039 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:42.012027 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:44.012645 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:44.59917 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:47.27211 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:47.693671 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:49.719285 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:50.097316 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:51.953414 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:52.35183 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:54.295675 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 07:14:54.71432 gannet.stats.ox.ac.uk 2351523 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 07:14:54.734909 gannet.stats.ox.ac.uk 2351523 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