Running ‘testthat.R’ [3s/11s]
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)  ────────
  empty beginning of file
  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("empty beginning of file")
  
  ── 2. Error: interactions subsetted by adding additional information (@test-glob
  more columns than column names
  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: stop("more columns than column names")
  
  ── 3. Error: interactions subsetted by adding additional information all interac
  invalid multibyte string 1
  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)
  
  ── 4. Error: interactions subsetted by adding additional information all interac
  invalid multibyte string at '<f0>S'
  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: make.names(col.names, unique = TRUE)
  
  ── 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] 146 - 121 == 25
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 36 SKIPPED: 2 FAILED: 5
  1. Error: interactions returned based on species (@test-globi.R#37) 
  2. Error: interactions subsetted by adding additional information (@test-globi.R#45) 
  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) 
  
  Error: testthat unit tests failed
  Execution halted