Running 'testthat.R' [28s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > if (require(testthat)) {
  +   library(fledge)
  +   test_check("fledge")
  + } else {
  +   message("testthat not available.")
  + }
  Loading required package: testthat
  [ FAIL 8 | WARN 0 | SKIP 5 | PASS 0 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bump_version.R:5:3'): bump_version() works -- dev ──────────────
  Error in `contrib.url(repos, type)`: trying to use CRAN without setting a mirror
  Backtrace:
      ▆
   1. └─fledge::with_demo_project(...) at test-bump_version.R:5:2
   2.   └─fledge::create_demo_project(dir = dir, news = TRUE)
   3.     ├─usethis::with_project(...)
   4.     │ └─base::force(code)
   5.     ├─rlang::with_interactive(...)
   6.     └─usethis::use_news_md()
   7.       └─usethis:::cran_version()
   8.         └─utils::available.packages()
   9.           └─utils::contrib.url(repos, type)
  ── Error ('test-bump_version.R:26:3'): bump_version() works -- not dev ─────────
  Error in `contrib.url(repos, type)`: trying to use CRAN without setting a mirror
  Backtrace:
      ▆
   1. └─fledge::with_demo_project(...) at test-bump_version.R:26:2
   2.   └─fledge::create_demo_project(dir = dir, news = TRUE)
   3.     ├─usethis::with_project(...)
   4.     │ └─base::force(code)
   5.     ├─rlang::with_interactive(...)
   6.     └─usethis::use_news_md()
   7.       └─usethis:::cran_version()
   8.         └─utils::available.packages()
   9.           └─utils::contrib.url(repos, type)
  ── Error ('test-bump_version.R:44:3'): bump_version() errors informatively for forbidden notifications ──
  Error in `contrib.url(repos, type)`: trying to use CRAN without setting a mirror
  Backtrace:
      ▆
   1. └─fledge::with_demo_project(...) at test-bump_version.R:44:2
   2.   └─fledge::create_demo_project(dir = dir, news = TRUE)
   3.     ├─usethis::with_project(...)
   4.     │ └─base::force(code)
   5.     ├─rlang::with_interactive(...)
   6.     └─usethis::use_news_md()
   7.       └─usethis:::cran_version()
   8.         └─utils::available.packages()
   9.           └─utils::contrib.url(repos, type)
  ── Error ('test-bump_version.R:54:3'): bump_version() errors informatively for wrong branch ──
  Error in `contrib.url(repos, type)`: trying to use CRAN without setting a mirror
  Backtrace:
      ▆
   1. └─fledge::with_demo_project(...) at test-bump_version.R:54:2
   2.   └─fledge::create_demo_project(dir = dir, news = TRUE)
   3.     ├─usethis::with_project(...)
   4.     │ └─base::force(code)
   5.     ├─rlang::with_interactive(...)
   6.     └─usethis::use_news_md()
   7.       └─usethis:::cran_version()
   8.         └─utils::available.packages()
   9.           └─utils::contrib.url(repos, type)
  ── Error ('test-finalize-version.R:4:3'): finalize_version(push = FALSE) ───────
  Error in `contrib.url(repos, type)`: trying to use CRAN without setting a mirror
  Backtrace:
      ▆
   1. └─fledge::with_demo_project(...) at test-finalize-version.R:4:2
   2.   └─fledge::create_demo_project(dir = dir, news = TRUE)
   3.     ├─usethis::with_project(...)
   4.     │ └─base::force(code)
   5.     ├─rlang::with_interactive(...)
   6.     └─usethis::use_news_md()
   7.       └─usethis:::cran_version()
   8.         └─utils::available.packages()
   9.           └─utils::contrib.url(repos, type)
  ── Error ('test-finalize-version.R:27:3'): finalize_version(push = TRUE) ───────
  Error in `contrib.url(repos, type)`: trying to use CRAN without setting a mirror
  Backtrace:
      ▆
   1. └─fledge::with_demo_project(...) at test-finalize-version.R:27:2
   2.   └─fledge::create_demo_project(dir = dir, news = TRUE)
   3.     ├─usethis::with_project(...)
   4.     │ └─base::force(code)
   5.     ├─rlang::with_interactive(...)
   6.     └─usethis::use_news_md()
   7.       └─usethis:::cran_version()
   8.         └─utils::available.packages()
   9.           └─utils::contrib.url(repos, type)
  ── Error ('test-tag_version.R:2:3'): tag_version() works ───────────────────────
  Error in `contrib.url(repos, type)`: trying to use CRAN without setting a mirror
  Backtrace:
      ▆
   1. └─fledge::with_demo_project(...) at test-tag_version.R:2:2
   2.   └─fledge::create_demo_project(dir = dir, news = TRUE)
   3.     ├─usethis::with_project(...)
   4.     │ └─base::force(code)
   5.     ├─rlang::with_interactive(...)
   6.     └─usethis::use_news_md()
   7.       └─usethis:::cran_version()
   8.         └─utils::available.packages()
   9.           └─utils::contrib.url(repos, type)
  ── Error ('test-unbump_version.R:4:3'): unbump_version() works ─────────────────
  Error in `contrib.url(repos, type)`: trying to use CRAN without setting a mirror
  Backtrace:
      ▆
   1. └─fledge::create_demo_project(...) at test-unbump_version.R:4:2
   2.   ├─usethis::with_project(...)
   3.   │ └─base::force(code)
   4.   ├─rlang::with_interactive(...)
   5.   └─usethis::use_news_md()
   6.     └─usethis:::cran_version()
   7.       └─utils::available.packages()
   8.         └─utils::contrib.url(repos, type)
  
  [ FAIL 8 | WARN 0 | SKIP 5 | PASS 0 ]
  Deleting unused snapshots:
  • bump_version/NEWS-nondev.md
  • bump_version/NEWS.md
  • finalize-version/NEWS-push-false.md
  • finalize-version/NEWS-push-true.md
  • unbump_version/NEWS.md
  • update-news/NEWS-empty.md
  • update-news/NEWS-new.md
  Error: Test failures
  Execution halted