Running 'testthat.R' [100s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library('testthat')
  > library('rdefra')
  > 
  > test_check('rdefra')
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  Error in file(file, "rt") : cannot open the connection
  -- 1. Failure: Metadata should be in the right format (@test-data.R#44)  -------
  `x` not equal to `expected`.
  1 element mismatch
  
  Error in file(file, "rt") : cannot open the connection
  -- 2. Failure: Data should be in the right format (@test-data.R#55)  -----------
  `x` not equal to `expected`.
  'is.NA' value mismatch: 0 in current 1 in target
  
  -- 3. Failure: DEFRA server should be running (@test-metadata.R#29)  -----------
  `x` not equal to `expected`.
  1 element mismatch
  
  -- 4. Failure: Infill missing coordinates from data frame. (@test-metadata.R#110
  `x` not equal to `expected`.
  1 element mismatch
  
  == testthat results  ===========================================================
  OK: 36 SKIPPED: 1 FAILED: 4
  1. Failure: Metadata should be in the right format (@test-data.R#44) 
  2. Failure: Data should be in the right format (@test-data.R#55) 
  3. Failure: DEFRA server should be running (@test-metadata.R#29) 
  4. Failure: Infill missing coordinates from data frame. (@test-metadata.R#110) 
  
  Error: testthat unit tests failed
  Execution halted