Running ‘testthat.R’ [160s/289s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2023-02-15 07:18:08.342318 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:18:12.695287 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-15 07:18:12.993008 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-02-15 07:18:13.330245 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-02-15 07:18:19.947426 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-02-15 07:18:19.96514 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-02-15 07:18:19.970867 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-02-15 07:18:19.977117 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-02-15 07:18:19.982925 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-02-15 07:18:19.988649 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-02-15 07:18:19.994164 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-02-15 07:18:20.367397 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-02-15 07:18:20.373226 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-02-15 07:18:20.378891 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-02-15 07:18:20.825546 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-02-15 07:18:20.85041 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-02-15 07:18:20.860048 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-02-15 07:18:21.15745 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:18:49.419569 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-15 07:18:49.582601 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-15 07:18:49.62113 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-15 07:18:49.918849 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:19:13.51754 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-15 07:19:13.64349 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-15 07:19:13.687796 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-15 07:19:17.037433 gannet.stats.ox.ac.uk 4116038 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-02-15 07:19:17.149447 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:19:55.262013 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-15 07:19:55.290206 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  -1.26798024301974 in  0.5  radius.
  2023-02-15 07:19:55.506049 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 4704)
  2023-02-15 07:21:07.282375 gannet.stats.ox.ac.uk 4116038 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.6.
  2023-02-15 07:21:08.452206 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:30.617206 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-15 07:21:30.649135 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  1.86985852404682 in  0.5  radius.
  2023-02-15 07:21:30.797037 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  21.8698585240468 in  0.5  radius.
  2023-02-15 07:21:30.8098 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  23.8698585240468 in  0.5  radius.
  2023-02-15 07:21:30.817671 gannet.stats.ox.ac.uk 4116038 CausalGPS FUN WARN:  There is no data to match with  24.8698585240468 in  0.5  radius.
  2023-02-15 07:21:30.835605 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2352)
  2023-02-15 07:21:46.017524 gannet.stats.ox.ac.uk 4116038 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.4.
  2023-02-15 07:21:47.456033 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:52.701218 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-02-15 07:21:53.252726 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-02-15 07:21:53.29528 gannet.stats.ox.ac.uk 4116038 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-02-15 07:21:53.438001 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:56.415835 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:21:56.758839 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:21:56.790601 gannet.stats.ox.ac.uk 4116038 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-02-15 07:21:56.851376 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:56.897555 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:56.933926 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:56.967396 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:57.001035 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:57.03411 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:57.069589 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:57.104313 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:57.146512 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:21:57.1857 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:22:00.303211 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:00.421065 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:00.474651 gannet.stats.ox.ac.uk 4116038 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24085816396445, recommended min value: 46.
  2023-02-15 07:22:00.518062 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:22:03.353711 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:03.688305 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:06.732652 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:07.159331 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:10.401195 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:10.859651 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:14.117429 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:14.50847 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:14.559072 gannet.stats.ox.ac.uk 4116038 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-02-15 07:22:14.598975 gannet.stats.ox.ac.uk 4116038 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-14 r83833), detected cores: 24
  2023-02-15 07:22:16.381127 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:16.916066 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:18.663428 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:18.959289 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:20.660028 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:20.982524 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:22.653202 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:22.993373 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:24.36624 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:24.806958 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:26.534281 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:26.93522 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:28.623864 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-15 07:22:28.941684 gannet.stats.ox.ac.uk 4116038 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-15 07:22:28.962009 gannet.stats.ox.ac.uk 4116038 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 22.7748385392029, recommended min value: 46.
  [ FAIL 8 | WARN 81 | SKIP 0 | PASS 207 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-absolute_weighted_corr_fun.R:10'): absoulte_weighted_corr_fun works as expected. ──
  val1$mean_absolute_corr not equal to 0.09003267.
  1/1 mismatches
  [1] 0.0851 - 0.09 == -0.00489
  ── Failure ('test-absolute_weighted_corr_fun.R:11'): absoulte_weighted_corr_fun works as expected. ──
  val1$median_absolute_corr not equal to 0.07821234.
  1/1 mismatches
  [1] 0.0691 - 0.0782 == -0.00908
  ── Failure ('test-absolute_weighted_corr_fun.R:12'): absoulte_weighted_corr_fun works as expected. ──
  val1$maximal_absolute_corr not equal to 0.2222087.
  1/1 mismatches
  [1] 0.218 - 0.222 == -0.00434
  ── Failure ('test-generate_pseudo_pop.R:37'): generate_pseudo_pop works as expected. ──
  ps_pop1$adjusted_corr_results$mean_absolute_corr not equal to 0.2580037.
  1/1 mismatches
  [1] 0.258 - 0.258 == 4.44e-05
  ── Failure ('test-generate_pseudo_pop.R:75'): generate_pseudo_pop works as expected. ──
  ps_pop2$adjusted_corr_results$mean_absolute_corr not equal to 0.2243034.
  1/1 mismatches
  [1] 0.224 - 0.224 == -0.000124
  ── Failure ('test-generate_pseudo_pop.R:279'): generate_pseudo_pop works as expected. ──
  ps_pop3$adjusted_corr_results$mean_absolute_corr not equal to 0.4481222.
  1/1 mismatches
  [1] 0.375 - 0.448 == -0.0731
  ── Failure ('test-generate_pseudo_pop.R:306'): generate_pseudo_pop works as expected. ──
  ps_pop4$adjusted_corr_results$mean_absolute_corr not equal to 0.2210705.
  1/1 mismatches
  [1] 0.221 - 0.221 == -9.3e-05
  ── Failure ('test-generate_pseudo_pop.R:333'): generate_pseudo_pop works as expected. ──
  ps_pop5$adjusted_corr_results$mean_absolute_corr not equal to 0.1078871.
  1/1 mismatches
  [1] 0.108 - 0.108 == -0.000196
  
  [ FAIL 8 | WARN 81 | SKIP 0 | PASS 207 ]
  Error: Test failures
  Execution halted