Running ‘testthat.R’ [6s/39s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("rdefra")
  > 
  > test_check("rdefra")
  Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<c7>26<aa><b3><e0><9f><c9><4c><d0><3a><3e><c9><59><0a><30><7a><18><d7><ed><d0><70><4c><0c><68><f1><be><c7><9f><ca><72><f4><e5><6f><5a><28><dc><d0><a0><98><fc>7k<8c>?o<e6><dc><d9>G<80>~<86><ad>â<dc>$<a9><94><eb>P<ff><ac>k<a3>e<b4><ac><ae><e8><cb>w,<95>	<f8>6/<a6><96><89>
  <f4><9d>$<e9><fe>ǣ<fe>7<bb>Eщ<b1>y<be><f3><c1>B<d5>y<ae><80><ba>A<be><c0>!<b2><b7><d2>vw<c6>Z]
  8
  <be>f<d6>,<c0><90><c3><f3>&<af><ef><92>'
  Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<f9><91>U'
  Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
    more columns than column names
  Error in make.names(col.names, unique = TRUE) : 
    invalid multibyte string at '<dc>N+<d6>]<2f><93>/m<ea>F/<ce>į<84>Y<f1><b6><d6>&<86>К<a6><e0>Ti<8d><84><c5><ef><fb>]d<bd>2]{I}o<b0>3<f1>wCǧǧ<87><e7><85><be>*gH<d5>P<86><b7><ba><ef><93><f3><ef><c4><ea><be>w<f8>\<ae><98><d0>lGv'<85><be><e9>aDcRS<83>]<b6><cb>@<c4>HW<94>\Cq`<ec><a1>kZ<99>Ũ	<cc><d5>TC~<f3><b0><93><d7><ef><b5>b<c8><f7>'
  Error in make.names(col.names, unique = TRUE) : 
    invalid multibyte string at '<b0><e1>؄<9a><8f><50><a9><f3><a7>!<b7><9a><82>sܞ<e9>vŔL<b4>R*<c6><ca>0H<c2>'
  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 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 '<e6>'
  Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<a0><ec>FA<e6>'
  Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<88>^<fe><97><ea>*<48>3JT<b5>n_uF'
  Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<f0><f3>FA<e6>'
  ── 1. Error: Metadata should be in the right format (@test-data.R#39)  ─────────
  Column `PM10.particulate.matter..Hourly.measured.` can't be converted from integer to factor
  1: ukair_get_hourly_data(site_id, years) at testthat/test-data.R:39
  2: dplyr::bind_rows(data)
  3: bind_rows_(x, .id)
  
  Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
    invalid multibyte string at '<f9>3<fb><d4>3<af><81>؃<83><b9><br<cf><c5><f7>FJ<a2><8e><ba>J<^1X<b5><b0>jlK)<83><83>!<d3><f7>D<e8>'
  ── 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. Error: Up-to-date metadata catalogue should have at least 6569 stations. (
  invalid multibyte string at '<f4>FA<e6>'
  1: ukair_catalogue() at testthat/test-metadata.R:37
  2: utils::read.csv(catalogue_csv_link)
  3: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  4: make.names(col.names, unique = TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 17 SKIPPED: 1 WARNINGS: 62 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. Error: Up-to-date metadata catalogue should have at least 6569 stations. (@test-metadata.R#37) 
  
  Error: testthat unit tests failed
  Execution halted