Running ‘testthat.R’ [144s/76s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgdown)
  > 
  > test_check("pkgdown")
  Starting 2 test processes
  [ FAIL 15 | WARN 0 | SKIP 128 | PASS 670 ]
  
  ══ Skipped tests (128) ═════════════════════════════════════════════════════════
  • On CRAN (120): 'test-build-reference.R:4:3', 'test-build-reference.R:105:3',
    'test-build-articles.R:14:3', 'test-build-articles.R:29:3',
    'test-build-articles.R:57:3', 'test-build-articles.R:79:3',
    'test-build-favicons.R:4:3', 'test-build-favicons.R:16:3',
    'test-build-footer.R:12:3', 'test-build-footer.R:68:3',
    'test-build-github.R:5:3', 'test-build-home-authors.R:16:3',
    'test-build-home-authors.R:29:3', 'test-build-home-authors.R:90:3',
    'test-build-home-authors.R:96:3', 'test-build-home-authors.R:198:3',
    'test-build-home-community.R:11:3', 'test-build-home-index.R:39:3',
    'test-build-home-index.R:86:3', 'test-build-home-index.R:125:3',
    'test-build-home-index.R:136:3', 'test-build-news.R:16:3',
    'test-build-news.R:52:3', 'test-build-news.R:105:3',
    'test-build-news.R:110:3', 'test-build-news.R:115:3',
    'test-build-news.R:188:3', 'test-build-news.R:207:3',
    'test-build-news.R:221:3', 'test-build-news.R:235:3',
    'test-build-news.R:247:3', 'test-build-redirects.R:10:3',
    'test-build-redirects.R:27:3', 'test-build-reference-index.R:10:3',
    'test-build-reference-index.R:60:3', 'test-build-reference-index.R:74:3',
    'test-build-reference-index.R:115:3', 'test-build-reference-index.R:128:3',
    'test-check.R:9:3', 'test-check.R:20:3', 'test-check.R:31:3',
    'test-check.R:40:3', 'test-check.R:51:3', 'test-check.R:68:3',
    'test-config.R:11:3', 'test-config.R:16:3', 'test-config.R:35:3',
    'test-development.R:54:3', 'test-external-deps.R:4:3',
    'test-build-article.R:47:3', 'test-build-article.R:110:3',
    'test-build-article.R:118:3', 'test-build-article.R:169:3',
    'test-build-article.R:175:3', 'test-build-article.R:204:3',
    'test-build-article.R:223:3', 'test-build-article.R:229:3',
    'test-build-article.R:276:3', 'test-build-article.R:283:3',
    'test-highlight.R:14:3', 'test-highlight.R:28:3', 'test-highlight.R:56:3',
    'test-markdown.R:24:3', 'test-markdown.R:61:3', 'test-navbar-menu.R:10:3',
    'test-navbar-menu.R:20:3', 'test-navbar-menu.R:28:3',
    'test-navbar-menu.R:50:3', 'test-navbar-menu.R:80:3',
    'test-navbar-menu.R:84:3', 'test-init.R:3:3', 'test-init.R:57:3',
    'test-navbar.R:3:3', 'test-navbar.R:15:3', 'test-navbar.R:25:3',
    'test-navbar.R:88:3', 'test-navbar.R:103:3', 'test-navbar.R:124:4',
    'test-navbar.R:133:3', 'test-navbar.R:172:3', 'test-preview.R:4:3',
    'test-package.R:2:3', 'test-package.R:21:3', 'test-package.R:27:3',
    'test-package.R:92:3', 'test-rd-example.R:112:3', 'test-rd-html.R:7:3',
    'test-rd-html.R:32:3', 'test-rd-html.R:36:3', 'test-rd-html.R:53:3',
    'test-rd-html.R:293:3', 'test-rd-html.R:365:3', 'test-rd-html.R:373:3',
    'test-rd-html.R:384:3', 'test-rd-html.R:394:3', 'test-render.R:6:3',
    'test-render.R:48:3', 'test-repo.R:53:3', 'test-theme.R:5:3',
    'test-theme.R:36:3', 'test-topics-external.R:2:3',
    'test-topics-external.R:10:3', 'test-templates.R:121:3',
    'test-templates.R:128:3', 'test-templates.R:175:4',
    'test-tweak-homepage.R:38:3', 'test-tweak-homepage.R:59:3',
    'test-tweak-homepage.R:71:3', 'test-tweak-tabset.R:22:3',
    'test-tweak-tags.R:61:3', 'test-tweak-tags.R:177:3',
    'test-tweak-tags.R:268:3', 'test-usage.R:24:3', 'test-utils-fs.R:2:3',
    'test-utils-fs.R:9:3', 'test-topics.R:18:3', 'test-topics.R:35:3',
    'test-topics.R:70:3', 'test-topics.R:157:3', 'test-topics.R:169:3'
  • quarto 1.5 not available (8): 'test-build-quarto-articles.R:2:3',
    'test-build-quarto-articles.R:15:3', 'test-build-quarto-articles.R:33:3',
    'test-build-quarto-articles.R:48:3', 'test-build-quarto-articles.R:64:3',
    'test-build-quarto-articles.R:76:3', 'test-build-quarto-articles.R:93:3',
    'test-figure.R:3:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-build-home-index.R:4:3'): messages about reading and writing ───
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-build-home-index.R:4:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-build-home-index.R:15:3'): title and description come from DESCRIPTION by default ──
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(data_home(pkg)$pagetitle, "A test title") at test-build-home-index.R:15:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─pkgdown:::data_home(pkg)
    5.   ├─pkgdown:::print_yaml(...)
    6.   │ └─base::structure(x, class = "print_yaml")
    7.   └─pkgdown:::data_home_sidebar(pkg, call = call)
    8.     └─pkgdown:::data_home_sidebar_links(pkg)
    9.       └─pkgdown:::cran_link(pkg$package)
   10.         └─httr2::req_perform(req)
   11.           └─httr2:::cache_pre_fetch(req)
   12.             ├─httr2:::resp_cache_info(cache_get(req))
   13.             │ └─httr2:::resp_cache_expires(resp, control)
   14.             │   ├─control %||% resp_cache_control(resp)
   15.             │   └─httr2:::resp_cache_control(resp)
   16.             │     └─httr2::resp_header(resp, "Cache-Control")
   17.             │       └─httr2:::check_response(resp)
   18.             │         └─httr2:::is_response(resp)
   19.             └─httr2:::cache_get(req)
   20.               └─base::readRDS(path)
  ── Error ('test-build-home-index.R:27:3'): math is handled ─────────────────────
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─base::suppressMessages(build_home_index(pkg)) at test-build-home-index.R:27:3
    2. │ └─base::withCallingHandlers(...)
    3. └─pkgdown::build_home_index(pkg)
    4.   └─pkgdown:::data_home(pkg)
    5.     ├─pkgdown:::print_yaml(...)
    6.     │ └─base::structure(x, class = "print_yaml")
    7.     └─pkgdown:::data_home_sidebar(pkg, call = call)
    8.       └─pkgdown:::data_home_sidebar_links(pkg)
    9.         └─pkgdown:::cran_link(pkg$package)
   10.           └─httr2::req_perform(req)
   11.             └─httr2:::cache_pre_fetch(req)
   12.               ├─httr2:::resp_cache_info(cache_get(req))
   13.               │ └─httr2:::resp_cache_expires(resp, control)
   14.               │   ├─control %||% resp_cache_control(resp)
   15.               │   └─httr2:::resp_cache_control(resp)
   16.               │     └─httr2::resp_header(resp, "Cache-Control")
   17.               │       └─httr2:::check_response(resp)
   18.               │         └─httr2:::is_response(resp)
   19.               └─httr2:::cache_get(req)
   20.                 └─base::readRDS(path)
  ── Error ('test-build-home-index.R:51:3'): version formatting in preserved ─────
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─base::suppressMessages(build_home_index(pkg)) at test-build-home-index.R:51:3
    2. │ └─base::withCallingHandlers(...)
    3. └─pkgdown::build_home_index(pkg)
    4.   └─pkgdown:::data_home(pkg)
    5.     ├─pkgdown:::print_yaml(...)
    6.     │ └─base::structure(x, class = "print_yaml")
    7.     └─pkgdown:::data_home_sidebar(pkg, call = call)
    8.       └─pkgdown:::data_home_sidebar_links(pkg)
    9.         └─pkgdown:::cran_link(pkg$package)
   10.           └─httr2::req_perform(req)
   11.             └─httr2:::cache_pre_fetch(req)
   12.               ├─httr2:::resp_cache_info(cache_get(req))
   13.               │ └─httr2:::resp_cache_expires(resp, control)
   14.               │   ├─control %||% resp_cache_control(resp)
   15.               │   └─httr2:::resp_cache_control(resp)
   16.               │     └─httr2::resp_header(resp, "Cache-Control")
   17.               │       └─httr2:::check_response(resp)
   18.               │         └─httr2:::is_response(resp)
   19.               └─httr2:::cache_get(req)
   20.                 └─base::readRDS(path)
  ── Error ('test-build-home-index.R:58:3'): data_home_sidebar() works by default ──
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(cat(data_home_sidebar(pkg))) at test-build-home-index.R:58:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-build-home-index.R:106:3'): data_home_sidebar() can get a custom markdown formatted component ──
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─xml2::read_html(data_home_sidebar(pkg)) at test-build-home-index.R:106:3
    2. └─pkgdown:::data_home_sidebar(pkg)
    3.   └─pkgdown:::data_home_sidebar_links(pkg)
    4.     └─pkgdown:::cran_link(pkg$package)
    5.       └─httr2::req_perform(req)
    6.         └─httr2:::cache_pre_fetch(req)
    7.           ├─httr2:::resp_cache_info(cache_get(req))
    8.           │ └─httr2:::resp_cache_expires(resp, control)
    9.           │   ├─control %||% resp_cache_control(resp)
   10.           │   └─httr2:::resp_cache_control(resp)
   11.           │     └─httr2::resp_header(resp, "Cache-Control")
   12.           │       └─httr2:::check_response(resp)
   13.           │         └─httr2:::is_response(resp)
   14.           └─httr2:::cache_get(req)
   15.             └─base::readRDS(path)
  ── Error ('test-build-home-index.R:115:3'): data_home_sidebar() can add a TOC ──
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─xml2::read_html(data_home_sidebar(pkg)) at test-build-home-index.R:115:3
    2. └─pkgdown:::data_home_sidebar(pkg)
    3.   └─pkgdown:::data_home_sidebar_links(pkg)
    4.     └─pkgdown:::cran_link(pkg$package)
    5.       └─httr2::req_perform(req)
    6.         └─httr2:::cache_pre_fetch(req)
    7.           ├─httr2:::resp_cache_info(cache_get(req))
    8.           │ └─httr2:::resp_cache_expires(resp, control)
    9.           │   ├─control %||% resp_cache_control(resp)
   10.           │   └─httr2:::resp_cache_control(resp)
   11.           │     └─httr2::resp_header(resp, "Cache-Control")
   12.           │       └─httr2:::check_response(resp)
   13.           │         └─httr2:::is_response(resp)
   14.           └─httr2:::cache_get(req)
   15.             └─base::readRDS(path)
  ── Failure ('test-build-home.R:12:3'): can build site even if no Authors@R present ──
  Expected `suppressMessages(build_home_index(pkg))` to run without any errors.
  i Actually got a <simpleError> with text:
    error reading from connection
  ── Failure ('test-build-home.R:17:3'): can build package without any index/readme ──
  Expected `suppressMessages(build_home_index(pkg))` to run without any errors.
  i Actually got a <simpleError> with text:
    error reading from connection
  ── Error ('test-build-home.R:29:3'): .github files are copied and linked ───────
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─base::suppressMessages(build_home(pkg)) at test-build-home.R:29:3
    2. │ └─base::withCallingHandlers(...)
    3. └─pkgdown::build_home(pkg)
    4.   └─pkgdown::build_home_index(pkg, quiet = quiet)
    5.     └─pkgdown:::data_home(pkg)
    6.       ├─pkgdown:::print_yaml(...)
    7.       │ └─base::structure(x, class = "print_yaml")
    8.       └─pkgdown:::data_home_sidebar(pkg, call = call)
    9.         └─pkgdown:::data_home_sidebar_links(pkg)
   10.           └─pkgdown:::cran_link(pkg$package)
   11.             └─httr2::req_perform(req)
   12.               └─httr2:::cache_pre_fetch(req)
   13.                 ├─httr2:::resp_cache_info(cache_get(req))
   14.                 │ └─httr2:::resp_cache_expires(resp, control)
   15.                 │   ├─control %||% resp_cache_control(resp)
   16.                 │   └─httr2:::resp_cache_control(resp)
   17.                 │     └─httr2::resp_header(resp, "Cache-Control")
   18.                 │       └─httr2:::check_response(resp)
   19.                 │         └─httr2:::is_response(resp)
   20.                 └─httr2:::cache_get(req)
   21.                   └─base::readRDS(path)
  ── Error ('test-build-search-docs.R:37:3'): build_search_index() has expected structure ──
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─base::suppressMessages(build_home_index(pkg)) at test-build-search-docs.R:37:3
    2. │ └─base::withCallingHandlers(...)
    3. └─pkgdown::build_home_index(pkg)
    4.   └─pkgdown:::data_home(pkg)
    5.     ├─pkgdown:::print_yaml(...)
    6.     │ └─base::structure(x, class = "print_yaml")
    7.     └─pkgdown:::data_home_sidebar(pkg, call = call)
    8.       └─pkgdown:::data_home_sidebar_links(pkg)
    9.         └─pkgdown:::cran_link(pkg$package)
   10.           └─httr2::req_perform(req)
   11.             └─httr2:::cache_pre_fetch(req)
   12.               ├─httr2:::resp_cache_info(cache_get(req))
   13.               │ └─httr2:::resp_cache_expires(resp, control)
   14.               │   ├─control %||% resp_cache_control(resp)
   15.               │   └─httr2:::resp_cache_control(resp)
   16.               │     └─httr2::resp_header(resp, "Cache-Control")
   17.               │       └─httr2:::check_response(resp)
   18.               │         └─httr2:::is_response(resp)
   19.               └─httr2:::cache_get(req)
   20.                 └─base::readRDS(path)
  ── Error ('test-build-search-docs.R:46:3'): build sitemap only messages when it updates ──
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─base::suppressMessages(build_home(pkg)) at test-build-search-docs.R:46:3
    2. │ └─base::withCallingHandlers(...)
    3. └─pkgdown::build_home(pkg)
    4.   └─pkgdown::build_home_index(pkg, quiet = quiet)
    5.     └─pkgdown:::data_home(pkg)
    6.       ├─pkgdown:::print_yaml(...)
    7.       │ └─base::structure(x, class = "print_yaml")
    8.       └─pkgdown:::data_home_sidebar(pkg, call = call)
    9.         └─pkgdown:::data_home_sidebar_links(pkg)
   10.           └─pkgdown:::cran_link(pkg$package)
   11.             └─httr2::req_perform(req)
   12.               └─httr2:::cache_pre_fetch(req)
   13.                 ├─httr2:::resp_cache_info(cache_get(req))
   14.                 │ └─httr2:::resp_cache_expires(resp, control)
   15.                 │   ├─control %||% resp_cache_control(resp)
   16.                 │   └─httr2:::resp_cache_control(resp)
   17.                 │     └─httr2::resp_header(resp, "Cache-Control")
   18.                 │       └─httr2:::check_response(resp)
   19.                 │         └─httr2:::is_response(resp)
   20.                 └─httr2:::cache_get(req)
   21.                   └─base::readRDS(path)
  ── Error ('test-build-search-docs.R:60:3'): build_search() builds the expected search.json with no URL ──
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─base::suppressMessages(build_home(pkg)) at test-build-search-docs.R:60:3
    2. │ └─base::withCallingHandlers(...)
    3. └─pkgdown::build_home(pkg)
    4.   └─pkgdown::build_home_index(pkg, quiet = quiet)
    5.     └─pkgdown:::data_home(pkg)
    6.       ├─pkgdown:::print_yaml(...)
    7.       │ └─base::structure(x, class = "print_yaml")
    8.       └─pkgdown:::data_home_sidebar(pkg, call = call)
    9.         └─pkgdown:::data_home_sidebar_links(pkg)
   10.           └─pkgdown:::cran_link(pkg$package)
   11.             └─httr2::req_perform(req)
   12.               └─httr2:::cache_pre_fetch(req)
   13.                 ├─httr2:::resp_cache_info(cache_get(req))
   14.                 │ └─httr2:::resp_cache_expires(resp, control)
   15.                 │   ├─control %||% resp_cache_control(resp)
   16.                 │   └─httr2:::resp_cache_control(resp)
   17.                 │     └─httr2::resp_header(resp, "Cache-Control")
   18.                 │       └─httr2:::check_response(resp)
   19.                 │         └─httr2:::is_response(resp)
   20.                 └─httr2:::cache_get(req)
   21.                   └─base::readRDS(path)
  ── Error ('test-check-built.R:4:3'): check images in readme ────────────────────
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─base::suppressMessages(build_home_index(pkg)) at test-check-built.R:4:3
    2. │ └─base::withCallingHandlers(...)
    3. └─pkgdown::build_home_index(pkg)
    4.   └─pkgdown:::data_home(pkg)
    5.     ├─pkgdown:::print_yaml(...)
    6.     │ └─base::structure(x, class = "print_yaml")
    7.     └─pkgdown:::data_home_sidebar(pkg, call = call)
    8.       └─pkgdown:::data_home_sidebar_links(pkg)
    9.         └─pkgdown:::cran_link(pkg$package)
   10.           └─httr2::req_perform(req)
   11.             └─httr2:::cache_pre_fetch(req)
   12.               ├─httr2:::resp_cache_info(cache_get(req))
   13.               │ └─httr2:::resp_cache_expires(resp, control)
   14.               │   ├─control %||% resp_cache_control(resp)
   15.               │   └─httr2:::resp_cache_control(resp)
   16.               │     └─httr2::resp_header(resp, "Cache-Control")
   17.               │       └─httr2:::check_response(resp)
   18.               │         └─httr2:::is_response(resp)
   19.               └─httr2:::cache_get(req)
   20.                 └─base::readRDS(path)
  ── Error ('test-init.R:18:3'): extra.css and extra.js copied and linked ────────
  Error in `readRDS(path)`: error reading from connection
  Backtrace:
       ▆
    1. ├─base::suppressMessages(build_home(pkg)) at test-init.R:18:3
    2. │ └─base::withCallingHandlers(...)
    3. └─pkgdown::build_home(pkg)
    4.   └─pkgdown::build_home_index(pkg, quiet = quiet)
    5.     └─pkgdown:::data_home(pkg)
    6.       ├─pkgdown:::print_yaml(...)
    7.       │ └─base::structure(x, class = "print_yaml")
    8.       └─pkgdown:::data_home_sidebar(pkg, call = call)
    9.         └─pkgdown:::data_home_sidebar_links(pkg)
   10.           └─pkgdown:::cran_link(pkg$package)
   11.             └─httr2::req_perform(req)
   12.               └─httr2:::cache_pre_fetch(req)
   13.                 ├─httr2:::resp_cache_info(cache_get(req))
   14.                 │ └─httr2:::resp_cache_expires(resp, control)
   15.                 │   ├─control %||% resp_cache_control(resp)
   16.                 │   └─httr2:::resp_cache_control(resp)
   17.                 │     └─httr2::resp_header(resp, "Cache-Control")
   18.                 │       └─httr2:::check_response(resp)
   19.                 │         └─httr2:::is_response(resp)
   20.                 └─httr2:::cache_get(req)
   21.                   └─base::readRDS(path)
  
  [ FAIL 15 | WARN 0 | SKIP 128 | PASS 670 ]
  Error: Test failures
  Execution halted