Running ‘testthat.R’ [7s/34s]
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 '<ed>?<e1><d5>'
  Error in make.names(col.names, unique = TRUE) : 
    invalid multibyte string 1
  Error in make.names(col.names, unique = TRUE) : 
    invalid multibyte string 1
  Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<bc><a2><a2><c7><de>0<b6><e7>sS<e0><83><d9>Q6<9d>ڕ$<a2><83><fb>U<ce><d8>w<f7>װI焆Z<8a>#<fb>/j<a5>C<80><ae><84>t<81>	<87><de><bd><c1>@A<c3><f7><c1>i<9f><82>V<e1><d1>b<ff><ea><e4>61?<9b>D<f2>@F<f9>|-<fa><84>4:<f0><98>4RT<97><af>e<a9><e7>?<f8>/K<80><c9><e2><a3><e9><f4><af><dc>\<b9><ad><eb><fe>^nPT<e4>5<d3>+ !<f3><fe>v<b1><af><e9><80><eb><c8><c7><d3>G<f2>P<e9>a<fc><ea><e0>zF'<84><bb><e0>C<ac><9c>}<8b><92>gl]<c7> <e5><92>y<85><cd>8<b8>'
  Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<b4>i<e2><c7>w<f5><9f><74><13><ae><70><3e><ba><c8><ba><5d><cb><43><06><be><ce><dd><4c><7a><57><fe><3d><fb><14><73><ce><4c><bc><a9><1d><b0><a3><57><07><4d><d3><6c><d8><1c><92><51><37><de><59><40><30><a5><93><5a><2a><71><27><8b><9d><2a><82><6f><60><96><f9><9c><8f><99><b8>w<aa>nJ<e9><d1><f2><b1><fc>Fq+j0<ef><a2>>	}d<c2>㬵<fb>O<b3>r<bd>T<ae>q<d5><af><96><9a><e2>k<d1>S<d8><d9>P<80>V<8d>2<80>5<dd>Z<92>3%<dd><e0>|<d2>K<c8>-<88>V<a8><a1>iϒ<82><df>E{<99><f4><db>xSk<9d>nr<a2>'
  ── 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 make.names(col.names, unique = TRUE) : 
    invalid multibyte string at '<90><fb><e5><fd><fc><fb><91><1a><41><49><c4><f6><46><77><f3><8d><71><50><7f><46><14><53><5a><79><e5><08><93><30><81><28><e7><3e><b2><bb><24><bf><48><de><41>'
  ── 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: 37 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