Running ‘testthat.R’ [3s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rglobi")
  Loading required package: rglobi
  ── 1. Failure: interactions returned based on species (@test-globi.R#38)  ──────
  as.character(rattus$source_taxon_name[1]) is empty.
  
  ── 2. Failure: interactions returned based on species (@test-globi.R#40)  ──────
  grep("Muridae", taxon_path) not equal to 1.
  Lengths differ: 0 is not 1
  
  ── 3. Error: interactions subsetted by adding additional information (@test-glob
  invalid multibyte string at '<f0><f3><f4>'
  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)
  
  ── 4. Error: interactions subsetted by adding additional information all interac
  invalid multibyte string at '<f4><f4>'
  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: make.names(col.names, unique = TRUE)
  
  ── 5. Error: interactions subsetted by adding additional information all interac
  invalid multibyte string at '<96>e{<ca>Y<fa><f2><e2><dd><ee><30>'
  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: 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))
  
  ── 6. 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] 358 - 333 == 25
  
  ── 7. Failure: interaction matrix can be retrieved (@test-globi.R#108)  ────────
  unlist(interaction.matrix[[2]]) not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 39 SKIPPED: 2 FAILED: 7
  1. Failure: interactions returned based on species (@test-globi.R#38) 
  2. Failure: interactions returned based on species (@test-globi.R#40) 
  3. Error: interactions subsetted by adding additional information (@test-globi.R#45) 
  4. Error: interactions subsetted by adding additional information all interaction types (@test-globi.R#54) 
  5. Error: interactions subsetted by adding additional information all interaction types include observations (@test-globi.R#64) 
  6. Failure: interactions subsetted by adding additional information using otherkeys, all interaction types include observations (@test-globi.R#77) 
  7. Failure: interaction matrix can be retrieved (@test-globi.R#108) 
  
  Error: testthat unit tests failed
  Execution halted