Running ‘testthat.R’ [222s/290s]
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-15 06:10:47.501286 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:11:00.938024 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-15 06:11:01.36264 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-15 06:11:01.697864 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-15 06:11:06.989827 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:11:29.070877 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-15 06:11:29.082005 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-15 06:11:29.12493 gannet.stats.ox.ac.uk 2199424 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-15 06:11:29.230597 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:11:33.248176 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-15 06:11:33.537759 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-15 06:11:33.916293 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-15 06:11:35.529332 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-15 06:11:35.558777 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-15 06:11:35.565386 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-15 06:11:35.585824 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-15 06:11:35.592104 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-15 06:11:35.598005 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-15 06:11:35.60359 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-15 06:11:35.837214 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-15 06:11:35.842793 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-15 06:11:35.848208 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-15 06:11:36.094237 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-15 06:11:36.104335 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-15 06:11:36.112156 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-15 06:11:36.40634 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:11:54.433117 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-15 06:11:54.664237 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-15 06:11:54.940966 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-15 06:11:55.072545 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:12:18.477224 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-15 06:12:18.839336 gannet.stats.ox.ac.uk 2199424 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-15 06:12:19.10709 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-15 06:12:21.621391 gannet.stats.ox.ac.uk 2199424 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-15 06:12:21.695133 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:12:58.919472 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-15 06:13:00.008526 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-15 06:13:07.017926 gannet.stats.ox.ac.uk 2199424 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-15 06:13:07.121886 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:13:45.270143 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-15 06:13:46.444279 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-15 06:13:53.592125 gannet.stats.ox.ac.uk 2199424 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-15 06:13:53.937841 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:00.804146 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-15 06:14:01.582983 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-15 06:14:01.622069 gannet.stats.ox.ac.uk 2199424 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-15 06:14:01.77579 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:05.116039 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:05.804079 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:05.84579 gannet.stats.ox.ac.uk 2199424 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-15 06:14:05.908429 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:05.976113 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:06.044552 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:06.1156 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:06.188471 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:06.270465 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:06.341444 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:06.404477 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:06.474561 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:10.008191 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:10.029228 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:10.162617 gannet.stats.ox.ac.uk 2199424 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-15 06:14:10.266496 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:14.093316 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:14.49526 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:17.838262 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:18.655454 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:22.317313 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:22.734653 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:25.905586 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:26.486509 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:26.528672 gannet.stats.ox.ac.uk 2199424 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-15 06:14:26.573763 gannet.stats.ox.ac.uk 2199424 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-14 r84430), detected cores: 24
  2023-05-15 06:14:29.108826 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:29.561389 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:31.91356 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:32.387924 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:34.631864 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:35.409608 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:38.095951 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:38.792711 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:41.805586 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:42.448788 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:44.618708 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:44.975299 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:46.739372 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-15 06:14:47.068252 gannet.stats.ox.ac.uk 2199424 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-15 06:14:47.089411 gannet.stats.ox.ac.uk 2199424 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