Namespace in Imports field not imported from: ‘glue’
  All declared Imports should be used.
Namespace in Imports field not imported from: ‘glue’
  All declared Imports should be used.
Packages required but not available: 'ggplot2', 'tidyr'

Package suggested but not available for checking: 'testthat'

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.
Namespace in Imports field not imported from: ‘glue’
  All declared Imports should be used.
Running ‘testthat.R’ [56s/57s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2021-07-23 14:13:19 swift-9.stats.ox.ac.uk 16108 CausalGPS log_system_info INFO:  System name: SunOS, OS type: unix, machine architecture: i86pc, user: ripley, R version 4.1.0 Patched (2021-07-20 r80649), detected cores: 16
  2021-07-23 14:13:42 swift-9.stats.ox.ac.uk 16108 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  starting worker pid=16716 on localhost:11639 at 14:13:43.418
  2021-07-23 14:13:48 swift-9.stats.ox.ac.uk 16716 CausalGPS FUN WARN:  There is no data to match with  18.9451694492605 in  0.5  radius.
  2021-07-23 14:13:48 swift-9.stats.ox.ac.uk 16716 CausalGPS FUN WARN:  There is no data to match with  20.9451694492605 in  0.5  radius.
  2021-07-23 14:13:48 swift-9.stats.ox.ac.uk 16716 CausalGPS FUN WARN:  There is no data to match with  21.9451694492605 in  0.5  radius.
  2021-07-23 14:13:48 swift-9.stats.ox.ac.uk 16716 CausalGPS FUN WARN:  There is no data to match with  23.9451694492605 in  0.5  radius.
  2021-07-23 14:13:48 swift-9.stats.ox.ac.uk 16108 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 2200)
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-matching_l1.R:30:4): matching_l1 functions as expected. ───────
  val$cf1[10] not equal to -0.8642621.
  1/1 mismatches
  [1] -0.137 - -0.864 == 0.727
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 71 ]
  Error: Test failures
  Execution halted
Installation failed.
See ‘/Volumes/Builds/packages/big-sur-arm64/results/4.1/CausalGPS.Rcheck/00install.out’ for details.
Installation failed.
See ‘/Volumes/Builds/packages/high-sierra-x86_64/results/4.1/CausalGPS.Rcheck/00install.out’ for details.
Installation failed.
See ‘/Volumes/Builds/packages/high-sierra-x86_64/results/4.0/CausalGPS.Rcheck/00install.out’ for details.