Running ‘testthat.R’ [2s/66s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rglobi")
  Loading required package: rglobi
  1. Error: interaction matrix can be retrieved (@test-globi.R#108) --------------
  cannot open the connection to 'http://api.globalbioticinteractions.org:80/interaction?&sourceTaxon=Homo%20sapiens&targetTaxon=Mammalia&targetTaxon=Aves&interactionType=interactsWith&field=source_taxon_external_id&field=source_taxon_name&field=source_taxon_path&field=source_specimen_life_stage&field=interaction_type&field=target_taxon_external_id&field=target_taxon_name&field=target_taxon_path&field=target_specimen_life_stage&field=latitude&field=longitude&field=study_citation&field=study_external_id&field=study_source_citation&bbox=&includeObservations=f&type=csv'
  1: get_interaction_matrix(source.taxon.names = list("Homo sapiens"), target.taxon.names = list("Mammalia", 
         "Aves")) at testthat/test-globi.R:108
  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: file(file, "rt")
  
  testthat results ================================================================
  OK: 34 SKIPPED: 0 FAILED: 1
  1. Error: interaction matrix can be retrieved (@test-globi.R#108) 
  
  Error: testthat unit tests failed
  Execution halted