Running ‘testthat.R’ [1s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rglobi")
  Loading required package: rglobi
  ── 1. Failure: default prey (@test-globi.R#6)  ─────────────────────────────────
  `x` isn't true.
  
  ── 2. Error: cypher query (@test-globi.R#20)  ──────────────────────────────────
  unexpected character '<'
  1: query("START taxon = node:taxons(name='Homo sapiens') RETURN taxon.name as `name`, taxon.path as `path` LIMIT 1") at testthat/test-globi.R:20
  2: rjson::fromJSON(h$value())
  3: stop(x)
  
  ── 3. Error: no result cypher query (@test-globi.R#28)  ────────────────────────
  unexpected character '<'
  1: query("START predatorTaxon = node:taxons(name='Calisto hysius') MATCH preyTaxon<-[:CLASSIFIED_AS]-prey<-[:ATE|PREYED_ON]-predator-[:CLASSIFIED_AS]->predatorTaxon WHERE has(preyTaxon.path) RETURN distinct(preyTaxon.name), preyTaxon.path as `prey.taxon.path`") at testthat/test-globi.R:28
  2: rjson::fromJSON(h$value())
  3: stop(x)
  
  ── 4. Failure: interactions returned based on species (@test-globi.R#38)  ──────
  as.character(rattus$source_taxon_name[1]) is empty.
  
  ── 5. Failure: interactions returned based on species (@test-globi.R#40)  ──────
  grep("Muridae", taxon_path) not equal to 1.
  Lengths differ: 0 is not 1
  
  ── 6. Failure: interactions subsetted by adding additional information (@test-gl
  class(rattus$source_taxon_name) not equal to "character".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "character"
  
  ── 7. Failure: interactions subsetted by adding additional information (@test-gl
  dim(rattusaves)[1] is not strictly less than dim(rattus)[1]. Difference: 0
  
  ── 8. Failure: interactions subsetted by adding additional information all inter
  dim(rattusaves)[1] is not strictly less than dim(rattus)[1]. Difference: 0
  
  ── 9. Failure: interactions subsetted by adding additional information using oth
  dim(rattusaves)[1] is not strictly less than dim(rattus)[1]. Difference: 0
  
  ── 10. Failure: interaction in area (@test-globi.R#100)  ───────────────────────
  class(interactions$source_taxon_name) not equal to "character".
  1/1 mismatches
  x[1]: "NULL"
  y[1]: "character"
  
  ── 11. Failure: interaction in area (@test-globi.R#101)  ───────────────────────
  length(interactions$source_taxon_name) > 10 isn't true.
  
  ── 12. 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
  
  ── 13. Failure: interaction matrix with interaction type can be retrieved (@test
  unlist(interaction.matrix[[2]]) not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  ── 14. Failure: interactions can be retrieved by type (@test-globi.R#118)  ─────
  length(interactions$source_taxon_name) not equal to 5.
  1/1 mismatches
  [1] 0 - 5 == -5
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 17 | SKIPPED: 2 | WARNINGS: 2 | FAILED: 14 ]
  1. Failure: default prey (@test-globi.R#6) 
  2. Error: cypher query (@test-globi.R#20) 
  3. Error: no result cypher query (@test-globi.R#28) 
  4. Failure: interactions returned based on species (@test-globi.R#38) 
  5. Failure: interactions returned based on species (@test-globi.R#40) 
  6. Failure: interactions subsetted by adding additional information (@test-globi.R#47) 
  7. Failure: interactions subsetted by adding additional information (@test-globi.R#49) 
  8. Failure: interactions subsetted by adding additional information all interaction types (@test-globi.R#57) 
  9. Failure: interactions subsetted by adding additional information using otherkeys, all interaction types include observations (@test-globi.R#74) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted