Running ‘testthat.R’ [4s/19s]
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 1
  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] 28 - 19 == 9
  
  ── 3. Error: interactions subsetted by adding additional information all interac
  invalid multibyte string at '<ed><9d>]<a8>Me<b5><ba>knҗ<a6>㪮<e2><96>@3<f1><d0>9F<86>78<f8><fb><85><c2>j<ea><e6><85><f9><80>h}!v7<fe><da>M͛3><9e><ea><a6><c7><d5><bb><a2><9f><c3><f0><c5><f8><93>	l<f8><ba>
  !<8f><e3>+L<95>]D̤<84>>~|t<ae><d5><d4>|}>4'<d3>	a1q<d1>`<e7><be>}<85><b8>A<8b><b3><b6><a2>k'
  1: get_interactions_by_taxa(sourcetaxon = "Rattus rattus") at testthat/test-globi.R:54
  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: type.convert(data[[i]], as.is = as.is[i], dec = dec, numerals = numerals, na.strings = character(0L))
  6: type.convert.default(data[[i]], as.is = as.is[i], dec = dec, numerals = numerals, 
         na.strings = character(0L))
  
  ── 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] 329 - 304 == 25
  
  ── 6. Error: interaction matrix can be retrieved (@test-globi.R#105)  ──────────
  invalid multibyte string 1
  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: 36 SKIPPED: 2 FAILED: 6
  1. Error: interactions returned based on species (@test-globi.R#37) 
  2. Failure: interactions subsetted by adding additional information (@test-globi.R#50) 
  3. Error: interactions subsetted by adding additional information all interaction types (@test-globi.R#54) 
  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 matrix can be retrieved (@test-globi.R#105) 
  
  Error: testthat unit tests failed
  Execution halted