Running ‘testthat.R’ [0m/53m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(GIFT)
  > 
  > test_check("GIFT")
  [ FAIL 27 | WARN 1 | SKIP 0 | PASS 61 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-GIFT_checklists.R:81:3'): invalid inputs ───────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_checklists.R:81:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_checklists(GIFT_version = 1)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_checklists_conditional.R:102:3'): invalid inputs ──────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_checklists_conditional.R:102:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_checklists_conditional(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_checklists_raw.R:26:3'): invalid inputs ───────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-GIFT_checklists_raw.R:26:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─GIFT::GIFT_checklists_raw(list_ID = 5, GIFT_version = 1)
    8.   ├─base::suppressMessages(GIFT::GIFT_taxonomy(api = api, GIFT_version = GIFT_version))
    9.   │ └─base::withCallingHandlers(...)
   10.   └─GIFT::GIFT_taxonomy(api = api, GIFT_version = GIFT_version)
   11.     └─GIFT:::check_api(api)
  ── Error ('test-GIFT_coverage.R:45:3'): invalid inputs ─────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_coverage.R:45:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_coverage(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_env.R:33:3'): invalid inputs ──────────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_env.R:33:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_env(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_env_meta_misc.R:20:3'): invalid inputs ────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_env_meta_misc.R:20:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_env_meta_misc(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_env_meta_raster.R:20:3'): invalid inputs ──────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_env_meta_raster.R:20:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_env_meta_raster(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_lists.R:5:3'): data frame output format ───────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-GIFT_lists.R:5:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_lists(GIFT_version = "beta")
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_lists.R:22:3'): invalid inputs ────────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_lists.R:22:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_lists(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_no_overlap.R:42:3'): invalid inputs ───────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_no_overlap.R:42:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_no_overlap(entity_IDs = c(1, 2), GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_overlap.R:24:1'): invalid inputs ──────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_overlap.R:24:0
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_overlap(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_phylogeny.R:15:3'): invalid inputs ────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_phylogeny.R:15:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_phylogeny(clade = NA, GIFT_version = "beta")
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_references.R:23:3'): invalid inputs ───────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_references.R:23:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_references(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_regions.R:24:3'): invalid inputs ──────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_regions.R:24:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_regions(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_richness.R:28:3'): invalid inputs ─────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_richness.R:28:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_richness(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_shapes.R:24:3'): invalid inputs ───────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_shapes.R:24:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_shapes(entity_ID = c(677, 200), GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_spatial.R:23:3'): data frame output format ────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_spatial.R:23:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_spatial(shp = NULL, coordinates = NULL)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_species.R:20:3'): invalid inputs ──────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_species.R:20:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_species(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_species_distribution.R:20:3'): invalid inputs ─────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_species_distribution.R:20:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_species_distribution(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_species_lookup.R:14:3'): invalid inputs ───────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_species_lookup.R:14:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_species_lookup(genus = 1)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_taxgroup.R:20:3'): invalid inputs ─────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_taxgroup.R:20:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_taxgroup(work_ID = c(1:5), GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_taxonomy.R:25:3'): invalid inputs ─────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_taxonomy.R:25:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_taxonomy(GIFT_version = 1)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_traits.R:35:3'): invalid inputs ───────────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_traits.R:35:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_traits(trait_IDs = "1.1.1", GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_traits_meta.R:19:1'): invalid inputs ──────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_traits_meta.R:19:0
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_traits_meta(GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_traits_raw.R:34:3'): invalid inputs ───────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_traits_raw.R:34:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_traits_raw(trait_IDs = "4.10.1", GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_traits_tax.R:39:3'): invalid inputs ───────────────────────
  Error in `check_api(api)`: Either the API is wrongly specified or the server is down.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-GIFT_traits_tax.R:39:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─GIFT::GIFT_traits_tax(trait_IDs = "1.1.1", GIFT_version = NA)
   8.   └─GIFT:::check_api(api)
  ── Error ('test-GIFT_versions.R:5:3'): data frame output format ────────────────
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://gift.uni-goettingen.de/api/index.php?query=versions'
  Backtrace:
      ▆
   1. └─GIFT::GIFT_versions() at test-GIFT_versions.R:5:2
   2.   └─jsonlite::read_json(...)
   3.     └─jsonlite::parse_json(...)
   4.       └─jsonlite:::parse_and_simplify(...)
   5.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   6.           └─jsonlite:::parse_con(txt, bigint_as_char)
   7.             ├─base::open(con, "rb")
   8.             └─base::open.connection(con, "rb")
  
  [ FAIL 27 | WARN 1 | SKIP 0 | PASS 61 ]
  Error: Test failures
  Execution halted