Running ‘testthat.R’ [3s/17s]
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)  ────────
  more columns than column names
  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: stop("more columns than column names")
  
  ── 2. Error: interactions subsetted by adding additional information (@test-glob
  invalid multibyte string 1
  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: make.names(col.names, unique = TRUE)
  
  ── 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] 124 - 99 == 25
  
  ── 4. Error: interactions subsetted by adding additional information all interac
  more columns than column names
  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: stop("more columns than column names")
  
  ── 5. 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")
  
  ── 6. Error: interaction in area (@test-globi.R#99)  ───────────────────────────
  invalid multibyte string at '<f0>J<c8>'
  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: make.names(col.names, unique = TRUE)
  
  ── 7. Error: interaction matrix can be retrieved (@test-globi.R#105)  ──────────
  invalid multibyte string at '<a0><cb>'
  1: get_interaction_matrix(source.taxon.names = list("Homo sapiens"), target.taxon.names = list("Mammalia", 
         "Aves")) at testthat/test-globi.R:105
  2: Reduce(function(accum, source.taxon.name) rbind(accum, unique_target_taxa_of_source_taxon(source.taxon.name, 
         target.taxon.names, interaction.type, opts = opts)), source.taxon.names, init = data.frame())
  3: f(init, x[[i]])
  4: rbind(accum, unique_target_taxa_of_source_taxon(source.taxon.name, target.taxon.names, 
         interaction.type, opts = opts))
  5: unique_target_taxa_of_source_taxon(source.taxon.name, target.taxon.names, interaction.type, 
         opts = opts)
  6: get_interactions_by_taxa(sourcetaxon = source.taxon.name, interactiontype = interaction.type, 
         targettaxon = target.taxon.names, opts = opts)
  7: read_csv(requesturl)
  8: utils::read.csv(url, stringsAsFactors = FALSE, ...)
  9: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  10: make.names(col.names, unique = TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 32 SKIPPED: 2 FAILED: 7
  1. Error: interactions returned based on species (@test-globi.R#37) 
  2. Error: interactions subsetted by adding additional information (@test-globi.R#45) 
  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#65) 
  5. Error: interactions subsetted by adding additional information using otherkeys, all interaction types include observations (@test-globi.R#71) 
  6. Error: interaction in area (@test-globi.R#99) 
  7. Error: interaction matrix can be retrieved (@test-globi.R#105) 
  
  Error: testthat unit tests failed
  Execution halted