Running ‘testthat.R’ [12s/69s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(biomartr)
  > 
  > test_check("biomartr")
  1. Error: The biomart() interface works properly.. (@test-biomart.R#10) --------
  Forbidden (HTTP 403).
  1: getMarts() at testthat/test-biomart.R:10
  2: getSubMarts(submarts[i])
  3: httr::stop_for_status(xmlContentMarts)
  
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/archaea/assembly_summary.txt'
  Content type 'unknown' length 223216 bytes (217 KB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/bacteria/assembly_summary.txt'
  Content type 'unknown' length 28746243 bytes (27.4 MB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/fungi/assembly_summary.txt'
  Content type 'unknown' length 79846 bytes (77 KB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/invertebrate/assembly_summary.txt'
  Content type 'unknown' length 47036 bytes (45 KB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/plant/assembly_summary.txt'
  Content type 'unknown' length 29979 bytes (29 KB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/protozoa/assembly_summary.txt'
  Content type 'unknown' length 24802 bytes (24 KB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_mammalian/assembly_summary.txt'
  Content type 'unknown' length 34795 bytes (33 KB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_other/assembly_summary.txt'
  Content type 'unknown' length 38964 bytes (38 KB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/viral/assembly_summary.txt'
  Content type 'unknown' length 2229786 bytes (2.1 MB)
  ==================================================
  2. Error: The getENSEMBLGENOMESInfo() interface works properly.. (@test-getENSEMBLGENOMESInfo.R#6) 
  The API 'http://rest.ensemblgenomes.org' does not 
                  seem to work properly. Are you connected to the internet? 
                  Is the homepage 'http://rest.ensemblgenomes.org' 
                  currently available?
  1: getENSEMBLGENOMESInfo() at testthat/test-getENSEMBLGENOMESInfo.R:6
  2: get.ensemblgenome.info(update = TRUE)
  3: tryCatch({
         ensemblgenome.info <- tibble::as_tibble(jsonlite::fromJSON("http://rest.ensemblgenomes.org/info/species?content-type=application/json")$species)
     }, error = function(e) stop("The API 'http://rest.ensemblgenomes.org' does not \n                seem to work properly. Are you connected to the internet? \n                Is the homepage 'http://rest.ensemblgenomes.org' \n                currently available?"))
  4: tryCatchList(expr, classes, parentenv, handlers)
  5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  6: value[[3L]](cond)
  7: stop("The API 'http://rest.ensemblgenomes.org' does not \n                seem to work properly. Are you connected to the internet? \n                Is the homepage 'http://rest.ensemblgenomes.org' \n                currently available?")
  
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/GENOME_REPORTS/overview.txt'
  Content type 'unknown' length 2330751 bytes (2.2 MB)
  ==================================================
  trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/metagenomes/assembly_summary.txt'
  Content type 'unknown' length 361166 bytes (352 KB)
  ==================================================
  testthat results ================================================================
  OK: 5 SKIPPED: 48 FAILED: 2
  1. Error: The biomart() interface works properly.. (@test-biomart.R#10) 
  2. Error: The getENSEMBLGENOMESInfo() interface works properly.. (@test-getENSEMBLGENOMESInfo.R#6) 
  
  Error: testthat unit tests failed
  Execution halted