Running ‘testthat.R’ [3s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rglobi")
  Loading required package: rglobi
  ── 1. Failure: interactions subsetted by adding additional information (@test-gl
  dim(unique(rbind(rattusaves, rattus))) not equal to dim(unique(rattus)).
  1/2 mismatches
  [1] 81 - 70 == 11
  
  ── 2. Failure: interactions subsetted by adding additional information all inter
  dim(rattusaves)[1] is not strictly less than dim(rattus)[1]. Difference: 31
  
  ── 3. Failure: interactions subsetted by adding additional information all inter
  dim(unique(rbind(rattusaves, rattus))) not equal to dim(unique(rattus)).
  1/2 mismatches
  [1] 42 - 17 == 25
  
  ── 4. 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")
  
  ── 5. 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] 122 - 97 == 25
  
  ── 6. 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: 36 SKIPPED: 2 FAILED: 6
  1. Failure: interactions subsetted by adding additional information (@test-globi.R#50) 
  2. Failure: interactions subsetted by adding additional information all interaction types (@test-globi.R#57) 
  3. Failure: interactions subsetted by adding additional information all interaction types (@test-globi.R#60) 
  4. Error: interactions subsetted by adding additional information all interaction types include observations (@test-globi.R#64) 
  5. Failure: interactions subsetted by adding additional information using otherkeys, all interaction types include observations (@test-globi.R#77) 
  6. Error: interaction in area (@test-globi.R#99) 
  
  Error: testthat unit tests failed
  Execution halted