Running 'testthat.R' [8s/42s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("rdefra")
  > 
  > test_check("rdefra")
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  -- 1. Error: Metadata should be in the right format (@test-data.R#39)  ---------
  Column `Nitric.oxide` can't be converted from factor to integer
  1: ukair_get_hourly_data(site_id, years) at testthat/test-data.R:39
  2: dplyr::bind_rows(data)
  3: bind_rows_(x, .id)
  
  == testthat results  ===========================================================
  OK: 19 SKIPPED: 1 WARNINGS: 56 FAILED: 1
  1. Error: Metadata should be in the right format (@test-data.R#39) 
  
  Error: testthat unit tests failed
  Execution halted