Running ‘testthat.R’ [222s/274s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2023-05-06 15:11:41.801803 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:11:53.757008 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-06 15:11:53.966175 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-06 15:11:54.277152 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-06 15:11:58.903245 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:12:19.120362 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-06 15:12:19.130619 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-06 15:12:19.176542 gannet.stats.ox.ac.uk 427987 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-06 15:12:19.26492 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:12:22.187642 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-06 15:12:22.384182 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-06 15:12:22.637044 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-06 15:12:23.908153 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-06 15:12:23.923119 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-06 15:12:23.928845 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-06 15:12:23.934216 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-06 15:12:23.939493 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-06 15:12:23.944675 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-06 15:12:23.950057 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-06 15:12:24.140224 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-06 15:12:24.145894 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-06 15:12:24.151559 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-06 15:12:24.471626 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-06 15:12:24.482584 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-06 15:12:24.490748 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-06 15:12:24.862737 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:12:43.225691 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-06 15:12:43.406425 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-06 15:12:43.648132 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-06 15:12:43.828697 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:13:07.622128 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-06 15:13:07.961718 gannet.stats.ox.ac.uk 427987 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-06 15:13:08.277875 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-06 15:13:10.674172 gannet.stats.ox.ac.uk 427987 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-06 15:13:10.762871 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:13:45.396523 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-06 15:13:46.38945 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-06 15:13:52.778426 gannet.stats.ox.ac.uk 427987 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-06 15:13:52.918955 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:28.77551 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-06 15:14:29.896153 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-06 15:14:36.222988 gannet.stats.ox.ac.uk 427987 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-06 15:14:36.665167 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:43.070227 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-06 15:14:43.878658 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-06 15:14:43.920905 gannet.stats.ox.ac.uk 427987 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-06 15:14:44.122309 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:47.260503 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:14:47.863093 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:14:47.904634 gannet.stats.ox.ac.uk 427987 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-06 15:14:47.956721 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:47.986239 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:48.04167 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:48.110294 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:48.191476 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:48.269876 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:48.329779 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:48.373921 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:48.449387 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:51.531289 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:14:51.538805 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:14:51.604432 gannet.stats.ox.ac.uk 427987 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-06 15:14:51.71632 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:14:55.317135 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:14:56.019319 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:14:59.1152 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:14:59.577969 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:03.064234 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:03.579317 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:07.428017 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:08.117648 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:08.217463 gannet.stats.ox.ac.uk 427987 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-06 15:15:08.295489 gannet.stats.ox.ac.uk 427987 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-05 r84398), detected cores: 24
  2023-05-06 15:15:10.875995 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:11.437312 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:13.781319 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:14.304719 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:16.474736 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:17.145562 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:19.400011 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:19.72679 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:22.549024 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:23.043612 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:25.371105 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:26.024725 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:27.842866 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-06 15:15:28.391098 gannet.stats.ox.ac.uk 427987 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-06 15:15:28.438639 gannet.stats.ox.ac.uk 427987 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