Running ‘testthat.R’ [4m/15m]
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-11 10:37:23.150606 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:38:06.285495 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-11 10:38:06.923172 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-11 10:38:08.01239 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-11 10:38:22.612768 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:39:30.064256 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-11 10:39:30.128288 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-11 10:39:30.305678 gannet.stats.ox.ac.uk 1357112 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-11 10:39:30.634909 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:39:41.312682 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-11 10:39:42.366296 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-11 10:39:43.392832 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-11 10:39:48.192981 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-11 10:39:48.248185 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-11 10:39:48.254474 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-11 10:39:48.314909 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-11 10:39:48.348828 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-11 10:39:48.379115 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-11 10:39:48.397219 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-11 10:39:49.078608 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-11 10:39:49.088619 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-11 10:39:49.129562 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-11 10:39:50.177783 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-11 10:39:50.214921 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-11 10:39:50.249363 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-11 10:39:51.31888 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:40:45.015025 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-11 10:40:45.584587 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-11 10:40:46.455526 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-11 10:40:46.846043 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:41:43.679749 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-11 10:41:44.235611 gannet.stats.ox.ac.uk 1357112 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-11 10:41:45.230769 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-11 10:41:54.077401 gannet.stats.ox.ac.uk 1357112 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-11 10:41:54.385781 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:43:20.100133 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-11 10:43:22.564426 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-11 10:43:41.986239 gannet.stats.ox.ac.uk 1357112 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-11 10:43:42.309705 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:45:46.143098 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-11 10:45:48.138242 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-11 10:46:08.628038 gannet.stats.ox.ac.uk 1357112 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-11 10:46:10.088726 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:36.014893 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-11 10:46:39.05002 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-11 10:46:39.242022 gannet.stats.ox.ac.uk 1357112 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-11 10:46:39.808044 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:52.997257 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:46:54.581846 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:46:54.894316 gannet.stats.ox.ac.uk 1357112 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-11 10:46:55.053514 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:55.176397 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:55.300935 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:55.423907 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:55.536164 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:55.633749 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:55.764737 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:55.867776 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:46:55.944871 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:47:08.352337 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:47:08.385775 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:47:08.585625 gannet.stats.ox.ac.uk 1357112 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-11 10:47:08.780903 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:47:21.052762 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:47:22.722859 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:47:37.36158 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:47:39.009475 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:47:52.743922 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:47:54.31334 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:48:08.593247 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:48:10.37273 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:48:10.546739 gannet.stats.ox.ac.uk 1357112 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-11 10:48:10.724376 gannet.stats.ox.ac.uk 1357112 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 10:48:18.591304 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:48:20.337213 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:48:27.782613 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:48:29.262329 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:48:37.486226 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:48:39.329895 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:48:48.5694 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:48:50.576777 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:48:58.55504 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:49:00.125073 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:49:07.679619 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:49:09.00172 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:49:15.624432 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 10:49:17.078744 gannet.stats.ox.ac.uk 1357112 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 10:49:17.156602 gannet.stats.ox.ac.uk 1357112 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