Running ‘testthat.R’ [3s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rglobi")
  Loading required package: rglobi
  ── 1. Error: interactions returned based on species (@test-globi.R#37)  ────────
  invalid multibyte string at '<80><83><f5>NV'
  1: get_interactions_by_taxa(sourcetaxon = "Rattus rattus") at testthat/test-globi.R:37
  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)
  
  ── 2. Failure: interactions subsetted by adding additional information (@test-gl
  dim(unique(rbind(rattusaves, rattus))) not equal to dim(unique(rattus)).
  1/2 mismatches
  [1] 82 - 71 == 11
  
  ── 3. Failure: interactions subsetted by adding additional information all inter
  dim(rattus)[1] > 0 isn't true.
  
  ── 4. Failure: interactions subsetted by adding additional information all inter
  dim(rattusaves)[1] is not strictly less than dim(rattus)[1]. Difference: 50
  
  ── 5. Failure: interactions subsetted by adding additional information all inter
  dim(unique(rbind(rattusaves, rattus))) not equal to dim(unique(rattus)).
  2/2 mismatches (average diff: 18.5)
  [1] 25 - 0 == 25
  [2] 13 - 1 == 12
  
  ── 6. Error: interactions subsetted by adding additional information all interac
  more columns than column names
  1: get_interactions_by_taxa(sourcetaxon = "Rattus rattus", returnobservations = T) at testthat/test-globi.R:64
  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")
  
  ── 7. Error: interactions subsetted by adding additional information using other
  more columns than column names
  1: get_interactions_by_taxa(sourcetaxon = "Rattus rattus") at testthat/test-globi.R:71
  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")
  
  ── 8. Error: interaction in area (@test-globi.R#99)  ───────────────────────────
  more columns than column names
  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: stop("more columns than column names")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 32 SKIPPED: 2 FAILED: 8
  1. Error: interactions returned based on species (@test-globi.R#37) 
  2. Failure: interactions subsetted by adding additional information (@test-globi.R#50) 
  3. Failure: interactions subsetted by adding additional information all interaction types (@test-globi.R#56) 
  4. Failure: interactions subsetted by adding additional information all interaction types (@test-globi.R#57) 
  5. Failure: interactions subsetted by adding additional information all interaction types (@test-globi.R#60) 
  6. Error: interactions subsetted by adding additional information all interaction types include observations (@test-globi.R#64) 
  7. Error: interactions subsetted by adding additional information using otherkeys, all interaction types include observations (@test-globi.R#71) 
  8. Error: interaction in area (@test-globi.R#99) 
  
  Error: testthat unit tests failed
  Execution halted