Running ‘testthat.R’ [3s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rglobi")
  Loading required package: rglobi
  ── 1. Error: interaction matrix with interaction type can be retrieved (@test-gl
  cannot open the connection to 'https://api.globalbioticinteractions.org:443/interaction?&sourceTaxon=Cymothoa%20excisa&targetTaxon=Micropogonias%20undulatus&interactionType=parasiteOf&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(list("Cymothoa excisa"), list("Micropogonias undulatus"), 
         "parasiteOf") at testthat/test-globi.R:112
  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")
  
  ── 2. Error: interactions can be retrieved by type (@test-globi.R#117)  ────────
  cannot open the connection to 'https://api.globalbioticinteractions.org:443/interactionTypes.csv?type=csv'
  1: rglobi::get_interactions_by_type(interactiontype = c("eats", "eatenBy"), showfield = c("source_taxon_name", 
         "interaction_type", "target_taxon_name"), otherkeys = list(limit = 5)) at testthat/test-globi.R:117
  2: get_interactions_by_taxa(sourcetaxon = NULL, interactiontype = interactiontype, ...)
  3: as.vector(get_interaction_types()[, 1])
  4: get_interaction_types()
  5: read_csv(get_globi_url("/interactionTypes.csv?type=csv", opts = opts))
  6: utils::read.csv(url, stringsAsFactors = FALSE, ...)
  7: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  8: file(file, "rt")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 32 SKIPPED: 2 FAILED: 2
  1. Error: interaction matrix with interaction type can be retrieved (@test-globi.R#112) 
  2. Error: interactions can be retrieved by type (@test-globi.R#117) 
  
  Error: testthat unit tests failed
  Execution halted