Running ‘testthat.R’ [7s/31s]
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 type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<d8>C\<bf>q<c2><40><1d>'
  Error in make.names(col.names, unique = TRUE) : 
    invalid multibyte string at '<91>O<ae>w<9b>'<57><cd>5<f9><a3><8a><92>6S<f1>^<99><a0><9e>u1M>u}<f5><e4>e1<cd><e7><c9><<8c><cd>8/M<a2><ac>
  nm
  <ea><e8>^<H<c1>$@<c0><8d>d;6S<ea>
  b<d9>^<f3>dJ<a1><cd>I$<b7>W<80><b6><e1><dd>Z<a3><9b><9c>c*^<d7>뗲<ae><fa>7HE<d1>/<8d>]<e3><e6>x-=<a0>	%<99><8f><b2>1ID?<a3><d1>Bk?<a6><e8>s_<87>[<84><e4>چoǔ'<c4>'
  ── 1. Error: Metadata should be in the right format (@test-data.R#39)  ─────────
  arguments imply differing number of rows: 0, 1
  1: ukair_get_hourly_data(site_id, years) at testthat/test-data.R:39
  2: ukair_get_hourly_data_internal(site_id, myYear)
  3: data.frame(variable = names(df)[col_vars], unit = units_col, year = a_year, stringsAsFactors = FALSE)
  4: stop(gettextf("arguments imply differing number of rows: %s", paste(unique(nrows), 
         collapse = ", ")), domain = NA)
  
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  ── 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: Up-to-date metadata catalogue should have at least 6569 stations.
  `x` not equal to `expected`.
  1 element mismatch
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 17 SKIPPED: 1 WARNINGS: 22 FAILED: 3
  1. Error: Metadata should be in the right format (@test-data.R#39) 
  2. Failure: Data should be in the right format (@test-data.R#55) 
  3. Failure: Up-to-date metadata catalogue should have at least 6569 stations. (@test-metadata.R#39) 
  
  Error: testthat unit tests failed
  Execution halted