Running ‘testthat.R’ [231s/291s]
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-13 08:55:58.718276 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:56:11.810713 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-13 08:56:12.198226 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-13 08:56:12.518377 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-13 08:56:17.615064 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:56:43.489144 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-13 08:56:43.501302 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-13 08:56:43.547821 gannet.stats.ox.ac.uk 827447 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-13 08:56:43.651216 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:56:46.459465 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-13 08:56:46.789769 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-13 08:56:47.410814 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-13 08:56:49.640777 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-13 08:56:49.656615 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-13 08:56:49.661834 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-13 08:56:49.667387 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-13 08:56:49.673683 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-13 08:56:49.678941 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-13 08:56:49.684046 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-13 08:56:49.909914 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-13 08:56:49.914967 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-13 08:56:49.92 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-13 08:56:50.189414 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-13 08:56:50.200177 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-13 08:56:50.20846 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-13 08:56:50.671068 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:57:10.358359 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-13 08:57:10.602398 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-13 08:57:10.902544 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-13 08:57:11.030119 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:57:33.883488 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-13 08:57:34.178442 gannet.stats.ox.ac.uk 827447 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-13 08:57:34.637428 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-13 08:57:37.575047 gannet.stats.ox.ac.uk 827447 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-13 08:57:37.733938 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:58:14.462199 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-13 08:58:15.505108 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-13 08:58:22.538516 gannet.stats.ox.ac.uk 827447 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-13 08:58:22.689574 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:58:57.754112 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-13 08:58:58.755036 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-13 08:59:05.152119 gannet.stats.ox.ac.uk 827447 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-13 08:59:05.668409 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:12.007916 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-13 08:59:12.569119 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-13 08:59:12.61126 gannet.stats.ox.ac.uk 827447 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-13 08:59:12.743307 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:16.209361 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:16.590024 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:16.66833 gannet.stats.ox.ac.uk 827447 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-13 08:59:16.766674 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:16.842243 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:16.889931 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:16.955613 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:17.036132 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:17.111507 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:17.187711 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:17.291839 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:17.378118 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:20.692288 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:20.700424 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:20.816257 gannet.stats.ox.ac.uk 827447 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-13 08:59:20.893391 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:24.22375 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:24.933368 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:28.356175 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:28.931781 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:32.472073 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:33.047575 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:36.759269 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:37.342897 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:37.388802 gannet.stats.ox.ac.uk 827447 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-13 08:59:37.459692 gannet.stats.ox.ac.uk 827447 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-12 r84428), detected cores: 24
  2023-05-13 08:59:39.334261 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:39.732686 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:41.444569 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:42.127157 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:44.036858 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:44.498248 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:46.843157 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:47.51211 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:50.932551 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:51.458554 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:54.026865 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:54.590125 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:56.552842 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-13 08:59:57.010069 gannet.stats.ox.ac.uk 827447 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-13 08:59:57.032796 gannet.stats.ox.ac.uk 827447 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