Running ‘testthat.R’ [3s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rglobi")
  Loading required package: rglobi
  ── 1. Error: interactions subsetted by adding additional information (@test-glob
  more columns than column names
  1: get_interactions_by_taxa(sourcetaxon = "Rattus rattus", interactiontype = interaction_types) at testthat/test-globi.R:45
  2: read_csv(requesturl)
  3: utils::read.csv(url, stringsAsFactors = FALSE, ...)
  4: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  5: stop("more columns than column names")
  
  ── 2. Failure: interactions subsetted by adding additional information all inter
  dim(unique(rbind(rattusaves, rattus))) not equal to dim(unique(rattus)).
  1/2 mismatches
  [1] 258 - 233 == 25
  
  ── 3. Error: interactions subsetted by adding additional information all interac
  invalid multibyte string 1
  1: get_interactions_by_taxa(sourcetaxon = "Rattus rattus", targettaxon = "Aves", returnobservations = T) at testthat/test-globi.R:65
  2: read_csv(requesturl)
  3: utils::read.csv(url, stringsAsFactors = FALSE, ...)
  4: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  5: make.names(col.names, unique = TRUE)
  
  ── 4. Failure: interactions subsetted by adding additional information using oth
  dim(merge(unique(rattusaves), unique(rattus), all.x = T, all.y = T)) not equal to dim(unique(rattus)).
  1/2 mismatches
  [1] 329 - 304 == 25
  
  ── 5. Error: interaction in area (@test-globi.R#99)  ───────────────────────────
  invalid multibyte string at '<ea><bc><de>sN<f3><05><21><27><d1><eb><d7><c2><39><ed><a8><9a><10><b6><88><33><a4><30><58>'
  1: get_interactions_in_area(bbox = c(-97, 17.5, -81, 31)) at testthat/test-globi.R:99
  2: get_interactions_by_taxa(sourcetaxon = NULL, bbox = bbox, ...)
  3: read_csv(requesturl)
  4: utils::read.csv(url, stringsAsFactors = FALSE, ...)
  5: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  6: type.convert(data[[i]], as.is = as.is[i], dec = dec, numerals = numerals, na.strings = character(0L))
  7: type.convert.default(data[[i]], as.is = as.is[i], dec = dec, numerals = numerals, 
         na.strings = character(0L))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 38 SKIPPED: 2 FAILED: 5
  1. Error: interactions subsetted by adding additional information (@test-globi.R#45) 
  2. Failure: interactions subsetted by adding additional information all interaction types (@test-globi.R#60) 
  3. Error: interactions subsetted by adding additional information all interaction types include observations (@test-globi.R#65) 
  4. Failure: interactions subsetted by adding additional information using otherkeys, all interaction types include observations (@test-globi.R#77) 
  5. Error: interaction in area (@test-globi.R#99) 
  
  Error: testthat unit tests failed
  Execution halted