Running ‘testthat.R’ [4m/12m]
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-09 11:04:42.46658 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:05:12.675415 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-09 11:05:12.98948 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-09 11:05:13.599291 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-09 11:05:24.484764 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:06:21.742111 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-09 11:06:21.766582 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-09 11:06:21.917049 gannet.stats.ox.ac.uk 1844292 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-09 11:06:22.19586 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:06:30.310848 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-09 11:06:30.894585 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-09 11:06:31.714377 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-09 11:06:35.34482 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-09 11:06:35.402379 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-09 11:06:35.419647 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-09 11:06:35.44833 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-09 11:06:35.468951 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-09 11:06:35.48439 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-09 11:06:35.496404 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-09 11:06:35.994823 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-09 11:06:36.012882 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-09 11:06:36.026366 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-09 11:06:36.842017 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-09 11:06:36.866275 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-09 11:06:36.889164 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-09 11:06:37.835801 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:07:27.113483 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-09 11:07:27.521364 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-09 11:07:28.241941 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-09 11:07:28.54183 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:08:30.443116 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-09 11:08:30.897789 gannet.stats.ox.ac.uk 1844292 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-09 11:08:31.739445 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-09 11:08:38.431667 gannet.stats.ox.ac.uk 1844292 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-09 11:08:38.623794 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:10:20.145917 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-09 11:10:22.038898 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-09 11:10:38.856095 gannet.stats.ox.ac.uk 1844292 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-09 11:10:39.132395 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:12:20.734161 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-09 11:12:23.459816 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-09 11:12:40.557393 gannet.stats.ox.ac.uk 1844292 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-09 11:12:42.048114 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:01.639777 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-09 11:13:03.367588 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-09 11:13:03.478388 gannet.stats.ox.ac.uk 1844292 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-09 11:13:03.790462 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:12.367966 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:13:13.322079 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:13:13.566523 gannet.stats.ox.ac.uk 1844292 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-09 11:13:13.669417 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:13.767683 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:13.861604 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:13.951914 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:14.047786 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:14.108162 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:14.205315 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:14.298392 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:14.385879 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:22.337438 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:13:22.36311 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:13:22.509319 gannet.stats.ox.ac.uk 1844292 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-09 11:13:22.62143 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:13:28.544603 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:13:29.030617 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:13:35.158022 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:13:36.297062 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:13:44.964881 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:13:46.1554 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:13:54.970907 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:13:55.936609 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:13:56.062106 gannet.stats.ox.ac.uk 1844292 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-09 11:13:56.164907 gannet.stats.ox.ac.uk 1844292 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-09 r84408), detected cores: 24
  2023-05-09 11:14:01.422604 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:14:02.903161 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:14:08.220051 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:14:09.229306 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:14:14.218418 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:14:15.166615 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:14:20.298478 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:14:21.510469 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:14:26.983328 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:14:28.209922 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:14:32.673331 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:14:33.114425 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:14:35.780934 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:14:36.602641 gannet.stats.ox.ac.uk 1844292 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:14:36.658008 gannet.stats.ox.ac.uk 1844292 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