Running ‘testthat.R’ [232s/256s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  OMP: Warning #96: Cannot form a team with 8 threads, using 2 instead.
  OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
  2023-05-03 13:27:38.876646 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:27:53.854808 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-03 13:27:54.086243 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-03 13:27:54.519642 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-03 13:27:59.740931 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:28:22.44332 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-03 13:28:22.454539 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-03 13:28:22.498984 gannet.stats.ox.ac.uk 1700294 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-03 13:28:22.58251 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:28:25.502479 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-03 13:28:25.731346 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-03 13:28:26.155644 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-03 13:28:27.410629 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-03 13:28:27.423919 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-03 13:28:27.430542 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-03 13:28:27.436711 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-03 13:28:27.442774 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-03 13:28:27.449065 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-03 13:28:27.454882 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-03 13:28:27.60893 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-03 13:28:27.615151 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-03 13:28:27.621157 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-03 13:28:27.900111 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-03 13:28:27.912173 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-03 13:28:27.92181 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-03 13:28:28.255709 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:28:44.900478 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-03 13:28:45.066329 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-03 13:28:45.33028 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-03 13:28:45.607755 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:29:06.079193 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-03 13:29:06.217064 gannet.stats.ox.ac.uk 1700294 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-03 13:29:06.474958 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-03 13:29:08.760507 gannet.stats.ox.ac.uk 1700294 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-03 13:29:08.832181 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:29:40.14284 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-03 13:29:40.745524 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-03 13:29:46.904954 gannet.stats.ox.ac.uk 1700294 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-03 13:29:47.049194 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:18.51457 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-03 13:30:19.07502 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-03 13:30:24.843223 gannet.stats.ox.ac.uk 1700294 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-03 13:30:25.147299 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:31.459145 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-03 13:30:32.055645 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-03 13:30:32.097101 gannet.stats.ox.ac.uk 1700294 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-03 13:30:32.219832 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:35.259482 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:30:35.669229 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:30:35.743999 gannet.stats.ox.ac.uk 1700294 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-03 13:30:35.803571 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:35.856892 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:35.905802 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:35.96558 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:36.020802 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:36.067991 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:36.130031 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:36.184022 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:36.237044 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:39.586074 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:30:39.594807 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:30:39.648057 gannet.stats.ox.ac.uk 1700294 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-03 13:30:39.702224 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:42.803223 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:30:43.17318 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:30:46.26114 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:30:46.602706 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:30:49.685024 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:30:50.136718 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:30:53.625822 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:30:53.961055 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:30:54.006782 gannet.stats.ox.ac.uk 1700294 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-03 13:30:54.044716 gannet.stats.ox.ac.uk 1700294 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2023-05-03 r84385), detected cores: 24
  2023-05-03 13:30:55.782623 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:30:56.15909 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:30:57.886005 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:30:58.257997 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:31:00.109973 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:31:00.482372 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:31:02.212166 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:31:02.598064 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:31:04.315377 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:31:04.6942 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:31:06.488921 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:31:06.813999 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:31:08.578445 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-03 13:31:08.969101 gannet.stats.ox.ac.uk 1700294 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-03 13:31:08.989265 gannet.stats.ox.ac.uk 1700294 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