Running ‘testthat.R’ [21s/26s]
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).
  2021-07-23 10:54:42 gannet.stats.ox.ac.uk 2761471 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: ripley, R Under development (unstable) (2021-07-22 r80654), detected cores: 24
  2021-07-23 10:54:53 gannet.stats.ox.ac.uk 2761471 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  starting worker pid=2761932 on localhost:11757 at 10:54:53.783
  OMP: Warning #96: Cannot form a team with 24 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).
  2021-07-23 10:54:56 gannet.stats.ox.ac.uk 2761932 CausalGPS FUN WARN:  There is no data to match with  18.9451694492605 in  0.5  radius.
  2021-07-23 10:54:56 gannet.stats.ox.ac.uk 2761932 CausalGPS FUN WARN:  There is no data to match with  20.9451694492605 in  0.5  radius.
  2021-07-23 10:54:56 gannet.stats.ox.ac.uk 2761932 CausalGPS FUN WARN:  There is no data to match with  21.9451694492605 in  0.5  radius.
  2021-07-23 10:54:56 gannet.stats.ox.ac.uk 2761932 CausalGPS FUN WARN:  There is no data to match with  23.9451694492605 in  0.5  radius.
  2021-07-23 10:54:56 gannet.stats.ox.ac.uk 2761471 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2200)
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-compute_closest_wgps.R:13:3): compute_closest_wgps works fine. ──
  wm[2] not equal to 2.
  1/1 mismatches
  [1] 3 - 2 == 1
  ── Failure (test-compute_closest_wgps_helper.R:10:3): compute_closest_wgps_helper works as expected. ──
  val[2] not equal to 2.
  1/1 mismatches
  [1] 4 - 2 == 2
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 70 ]
  Error: Test failures
  Execution halted