Running ‘testthat.R’ [4m/14m]
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-11 09:37:44.098948 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:38:25.592573 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-11 09:38:26.358848 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-11 09:38:27.370881 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-11 09:38:44.147022 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:39:54.261249 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-11 09:39:54.299513 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-11 09:39:54.482042 gannet.stats.ox.ac.uk 820860 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-11 09:39:54.81452 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:40:05.062817 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-11 09:40:05.990352 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-11 09:40:07.148913 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-11 09:40:12.388626 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-11 09:40:12.435896 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-11 09:40:12.461109 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-11 09:40:12.49139 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-11 09:40:12.510506 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-11 09:40:12.529416 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-11 09:40:12.558294 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-11 09:40:13.141273 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-11 09:40:13.164603 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-11 09:40:13.187382 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-11 09:40:14.139613 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-11 09:40:14.19445 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-11 09:40:14.223968 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-11 09:40:15.362201 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:41:15.875837 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-11 09:41:16.393923 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-11 09:41:17.272696 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-11 09:41:17.531248 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:42:34.152102 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-11 09:42:34.765303 gannet.stats.ox.ac.uk 820860 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-11 09:42:35.865141 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-11 09:42:44.531669 gannet.stats.ox.ac.uk 820860 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-11 09:42:44.768447 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:44:29.023525 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-11 09:44:31.193717 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-11 09:44:47.338568 gannet.stats.ox.ac.uk 820860 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-11 09:44:47.706357 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:46:56.548787 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-11 09:46:59.842011 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-11 09:47:23.525371 gannet.stats.ox.ac.uk 820860 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-11 09:47:24.812227 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:47:48.373032 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-11 09:47:50.817863 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-11 09:47:51.029882 gannet.stats.ox.ac.uk 820860 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-11 09:47:51.689889 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:03.451166 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:48:05.62559 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:48:05.871606 gannet.stats.ox.ac.uk 820860 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-11 09:48:06.118934 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:06.287872 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:06.435669 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:06.549628 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:06.622252 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:06.690176 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:06.770478 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:06.845259 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:06.919376 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:17.888302 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:48:17.912688 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:48:18.178954 gannet.stats.ox.ac.uk 820860 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-11 09:48:18.351231 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:48:29.879379 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:48:31.619486 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:48:41.781302 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:48:43.416463 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:48:53.104543 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:48:54.91029 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:07.293792 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:49:09.016457 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:09.271329 gannet.stats.ox.ac.uk 820860 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-11 09:49:09.451025 gannet.stats.ox.ac.uk 820860 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-10 r84418), detected cores: 24
  2023-05-11 09:49:15.612815 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:49:17.163311 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:21.559337 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:49:22.877831 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:29.476457 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:49:30.829571 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:37.370059 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:49:38.252865 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:44.475291 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:49:46.027052 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:51.05886 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:49:52.345193 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:57.70654 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-11 09:49:59.147461 gannet.stats.ox.ac.uk 820860 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-11 09:49:59.199671 gannet.stats.ox.ac.uk 820860 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