Running 'testthat.R' [160s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("rdefra")
  > 
  > test_check("rdefra")
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Warnings ====================================================================
  -- Warning (test-metadata.R:62:3): Find easting and northing coordinates of site UKA12536. --
  Discarded datum OSGB_1936 in CRS definition
  Backtrace:
    1. rdefra::ukair_get_coordinates(uka_id) test-metadata.R:62:2
    2. rdefra:::ukair_get_coordinates.character(uka_id)
    3. rdefra:::en2latlon(df)
    4. sp::CRS("+init=epsg:27700")
    5. rgdal::checkCRSArgs_ng(...)
   11. rgdal::showSRID(...)
  -- Warning (test-metadata.R:77:3): Find easting and northing coordinates of site UKA15910. --
  Discarded datum OSGB_1936 in CRS definition
  Backtrace:
    1. rdefra::ukair_get_coordinates(uka_id) test-metadata.R:77:2
    2. rdefra:::ukair_get_coordinates.character(uka_id)
    3. rdefra:::en2latlon(df)
    4. sp::CRS("+init=epsg:27700")
    5. rgdal::checkCRSArgs_ng(...)
   11. rgdal::showSRID(...)
  -- Warning (test-metadata.R:91:3): Find easting and northing coordinates of multiple sites. --
  Discarded datum OSGB_1936 in CRS definition
  Backtrace:
    1. rdefra::ukair_get_coordinates(IDs) test-metadata.R:91:2
    2. rdefra:::ukair_get_coordinates.character(IDs)
    3. rdefra:::en2latlon(df)
    4. sp::CRS("+init=epsg:27700")
    5. rgdal::checkCRSArgs_ng(...)
   11. rgdal::showSRID(...)
  -- Warning (test-metadata.R:119:3): Infill missing coordinates from data frame. --
  Discarded datum OSGB_1936 in CRS definition
  Backtrace:
    1. rdefra::ukair_get_coordinates(stations) test-metadata.R:119:2
    2. rdefra:::ukair_get_coordinates.data.frame(stations)
    3. rdefra:::en2latlon(ids)
    4. sp::CRS("+init=epsg:27700")
    5. rgdal::checkCRSArgs_ng(...)
   11. rgdal::showSRID(...)
  
  == Failed tests ================================================================
  -- Failure (test-metadata.R:29:3): DEFRA server should be running --------------
  `x` not equal to `expected`.
  1 element mismatch
  
  [ FAIL 1 | WARN 4 | SKIP 1 | PASS 20 ]
  Error: Test failures
  Execution halted