Running ‘testthat.R’ [4m/11m]
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-09 10:54:05.762145 gannet.stats.ox.ac.uk 1791285 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 10:54:31.342916 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-09 10:54:31.775954 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-09 10:54:32.089375 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-09 10:54:38.784372 gannet.stats.ox.ac.uk 1791285 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 10:55:30.985053 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-09 10:55:31.030254 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-09 10:55:31.177712 gannet.stats.ox.ac.uk 1791285 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-09 10:55:31.392947 gannet.stats.ox.ac.uk 1791285 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 10:55:36.324303 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-09 10:55:36.865187 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-09 10:55:37.483546 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-09 10:55:40.595758 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-09 10:55:40.628464 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-09 10:55:40.638268 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-09 10:55:40.652848 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-09 10:55:40.667557 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-09 10:55:40.677774 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-09 10:55:40.693215 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-09 10:55:41.100874 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-09 10:55:41.106982 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-09 10:55:41.122411 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-09 10:55:41.859791 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-09 10:55:41.885031 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-09 10:55:41.904442 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-09 10:55:42.578154 gannet.stats.ox.ac.uk 1791285 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 10:56:30.497129 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-09 10:56:30.971336 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-09 10:56:31.786597 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-09 10:56:32.145895 gannet.stats.ox.ac.uk 1791285 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 10:57:32.95946 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-09 10:57:33.473945 gannet.stats.ox.ac.uk 1791285 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-09 10:57:33.995687 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-09 10:57:40.099416 gannet.stats.ox.ac.uk 1791285 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-09 10:57:40.284485 gannet.stats.ox.ac.uk 1791285 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 10:59:12.28384 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-09 10:59:14.409211 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-09 10:59:28.413697 gannet.stats.ox.ac.uk 1791285 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-09 10:59:28.678895 gannet.stats.ox.ac.uk 1791285 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:01:03.768084 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-09 11:01:06.16692 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-09 11:01:21.934629 gannet.stats.ox.ac.uk 1791285 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-09 11:01:23.005912 gannet.stats.ox.ac.uk 1791285 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:01:43.342474 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-09 11:01:45.116012 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-09 11:01:45.272206 gannet.stats.ox.ac.uk 1791285 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-09 11:01:45.726926 gannet.stats.ox.ac.uk 1791285 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:01:53.884182 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:01:54.810303 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:01:54.874684 gannet.stats.ox.ac.uk 1791285 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-09 11:01:54.931186 gannet.stats.ox.ac.uk 1791285 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:01:54.985976 gannet.stats.ox.ac.uk 1791285 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:01:55.087278 gannet.stats.ox.ac.uk 1791285 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:01:55.18986 gannet.stats.ox.ac.uk 1791285 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:01:55.254781 gannet.stats.ox.ac.uk 1791285 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:01:55.366773 gannet.stats.ox.ac.uk 1791285 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:01:55.46174 gannet.stats.ox.ac.uk 1791285 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:01:55.557766 gannet.stats.ox.ac.uk 1791285 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:01:55.659975 gannet.stats.ox.ac.uk 1791285 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:02:03.782629 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:02:03.820801 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:02:04.090041 gannet.stats.ox.ac.uk 1791285 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-09 11:02:04.256352 gannet.stats.ox.ac.uk 1791285 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:02:12.939227 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:02:14.972119 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:02:24.833197 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:02:26.275807 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:02:35.319709 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:02:36.275354 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:02:45.476068 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:02:46.71209 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:02:46.872435 gannet.stats.ox.ac.uk 1791285 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-09 11:02:46.983162 gannet.stats.ox.ac.uk 1791285 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:02:52.284812 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:02:53.491497 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:02:58.870671 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:03:00.042069 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:03:04.653196 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:03:06.305307 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:03:08.233391 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:03:09.432969 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:03:14.69002 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:03:15.576784 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:03:19.716231 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:03:20.836977 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:03:25.090159 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-09 11:03:26.058561 gannet.stats.ox.ac.uk 1791285 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-09 11:03:26.079655 gannet.stats.ox.ac.uk 1791285 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