Running ‘testthat.R’ [172s/577s]
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-08 14:08:13.609781 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:08:22.708982 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-08 14:08:23.331335 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-02-08 14:08:24.214087 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-02-08 14:08:37.182687 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-02-08 14:08:37.196254 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-02-08 14:08:37.202381 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-02-08 14:08:37.208774 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-02-08 14:08:37.215156 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-02-08 14:08:37.221668 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-02-08 14:08:37.227981 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-02-08 14:08:37.623686 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-02-08 14:08:37.629952 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-02-08 14:08:37.635949 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-02-08 14:08:38.049798 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-02-08 14:08:38.07566 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-02-08 14:08:38.094833 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-02-08 14:08:38.890944 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:09:21.978127 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-08 14:09:22.378555 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-08 14:09:22.494182 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-08 14:09:23.167362 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:10:08.708125 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-08 14:10:09.078798 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-02-08 14:10:09.188222 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2058)
  2023-02-08 14:10:15.736204 gannet.stats.ox.ac.uk 1955060 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-02-08 14:10:15.909663 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:11:20.184733 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-02-08 14:11:20.226997 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  -1.26798024301974 in  0.5  radius.
  2023-02-08 14:11:20.570662 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 4704)
  2023-02-08 14:13:30.906732 gannet.stats.ox.ac.uk 1955060 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.6.
  2023-02-08 14:13:33.666579 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:14:22.854903 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-02-08 14:14:22.923779 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  1.86985852404682 in  0.5  radius.
  2023-02-08 14:14:23.310097 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  21.8698585240468 in  0.5  radius.
  2023-02-08 14:14:23.356404 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  23.8698585240468 in  0.5  radius.
  2023-02-08 14:14:23.381892 gannet.stats.ox.ac.uk 1955060 CausalGPS FUN WARN:  There is no data to match with  24.8698585240468 in  0.5  radius.
  2023-02-08 14:14:23.417181 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2352)
  2023-02-08 14:15:05.626952 gannet.stats.ox.ac.uk 1955060 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 0.4.
  2023-02-08 14:15:06.931653 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:18.293821 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-02-08 14:15:19.971076 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-02-08 14:15:20.10536 gannet.stats.ox.ac.uk 1955060 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-02-08 14:15:20.557554 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:28.075629 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:15:29.293974 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:15:29.442033 gannet.stats.ox.ac.uk 1955060 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-02-08 14:15:29.616288 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:29.691714 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:29.785761 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:29.860565 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:29.96737 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:30.048664 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:30.132719 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:30.186567 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:30.217549 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:30.293613 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:38.057555 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:15:38.331081 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:15:38.480584 gannet.stats.ox.ac.uk 1955060 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24085816396445, recommended min value: 46.
  2023-02-08 14:15:38.633152 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:15:45.437852 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:15:46.477062 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:15:52.807994 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:15:53.224869 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:15:58.597947 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:15:59.358204 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:06.724461 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:16:08.186268 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:08.314347 gannet.stats.ox.ac.uk 1955060 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-02-08 14:16:08.490069 gannet.stats.ox.ac.uk 1955060 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-02-08 r83779), detected cores: 24
  2023-02-08 14:16:13.32816 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:16:14.837531 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:17.893597 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:16:18.358784 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:22.716216 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:16:23.981644 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:28.257863 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:16:29.216037 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:34.544249 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:16:35.698411 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:39.678613 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:16:40.523714 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:44.998739 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-02-08 14:16:45.430188 gannet.stats.ox.ac.uk 1955060 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-02-08 14:16:45.453219 gannet.stats.ox.ac.uk 1955060 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