Running ‘testthat.R’ [141s/83s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgdown)
  > 
  > test_check("pkgdown")
  Starting 2 test processes
  [ FAIL 9 | WARN 4 | SKIP 107 | PASS 531 ]
  
  ══ Skipped tests (107) ═════════════════════════════════════════════════════════
  • On CRAN (103): 'test-build-reference.R:5:3', 'test-build-reference.R:56:3',
    'test-build-reference.R:75:3', 'test-build-reference.R:107:3',
    'test-build-favicons.R:4:3', 'test-build-favicons.R:13:3',
    'test-build-footer.R:11:3', 'test-build-github.R:5:3',
    'test-build-home-authors.R:55:3', 'test-build-home-authors.R:62:3',
    'test-build-home-index.R:23:3', 'test-build-home-index.R:55:3',
    'test-build-home-index.R:71:3', 'test-build-home-index.R:79:3',
    'test-build-home-index.R:88:3', 'test-build-home-index.R:110:3',
    'test-build-logo.R:12:3', 'test-build-news.R:20:3', 'test-build-news.R:49:3',
    'test-build-news.R:100:3', 'test-build-news.R:105:3',
    'test-build-news.R:184:3', 'test-build-news.R:210:3',
    'test-build-news.R:231:3', 'test-build-news.R:245:3',
    'test-build-news.R:262:3', 'test-build-redirects.R:31:3',
    'test-build-reference-index.R:10:3', 'test-build-reference-index.R:60:3',
    'test-build-reference-index.R:72:3', 'test-build-reference-index.R:80:3',
    'test-build-reference-index.R:88:3', 'test-build-reference-index.R:99:3',
    'test-build-reference-index.R:107:3', 'test-build-reference-index.R:136:3',
    'test-build-reference-index.R:146:3', 'test-build-articles.R:10:3',
    'test-build-articles.R:32:3', 'test-build-articles.R:39:3',
    'test-build-articles.R:52:3', 'test-build-articles.R:57:3',
    'test-build-articles.R:73:3', 'test-build-articles.R:85:3',
    'test-build-articles.R:98:3', 'test-build-articles.R:105:3',
    'test-build-articles.R:129:3', 'test-build-articles.R:146:3',
    'test-build-articles.R:181:3', 'test-build-articles.R:229:3',
    'test-check.R:8:3', 'test-check.R:19:3', 'test-check.R:25:3',
    'test-development.R:49:3', 'test-highlight.R:23:3', 'test-figure.R:10:3',
    'test-init.R:47:3', 'test-markdown.R:21:3', 'test-navbar.R:3:3',
    'test-navbar.R:15:3', 'test-navbar.R:25:3', 'test-navbar.R:80:3',
    'test-navbar.R:96:3', 'test-navbar.R:111:3', 'test-navbar.R:122:4',
    'test-navbar.R:132:4', 'test-navbar.R:141:4', 'test-navbar.R:178:3',
    'test-navbar.R:197:3', 'test-navbar.R:201:3', 'test-package.R:21:3',
    'test-rd-example.R:93:3', 'test-render.R:5:3', 'test-render.R:38:3',
    'test-rd-html.R:29:3', 'test-rd-html.R:34:3', 'test-rd-html.R:52:3',
    'test-rd-html.R:181:3', 'test-rd-html.R:288:3', 'test-rd-html.R:360:3',
    'test-rd-html.R:371:3', 'test-rd-html.R:381:3', 'test-repo.R:52:3',
    'test-sitrep.R:6:3', 'test-templates.R:122:3', 'test-templates.R:129:3',
    'test-topics-external.R:2:3', 'test-topics-external.R:10:3',
    'test-rmarkdown.R:7:3', 'test-rmarkdown.R:18:3', 'test-rmarkdown.R:38:3',
    'test-rmarkdown.R:57:3', 'test-tweak-homepage.R:38:3',
    'test-tweak-homepage.R:59:3', 'test-tweak-homepage.R:71:3',
    'test-topics.R:7:3', 'test-topics.R:24:3', 'test-topics.R:59:3',
    'test-topics.R:148:3', 'test-tweak-tabset.R:21:3', 'test-tweak-tags.R:61:3',
    'test-tweak-tags.R:177:3', 'test-tweak-tags.R:257:3',
    'test-utils-yaml.R:10:3'
  • dir_exists(path)[[1]] is not TRUE (1): 'test-build-home-citation.R:6:1'
  • dir_exists(test_path("assets/site-dot-github/.github")) is not TRUE (2):
    'test-build-home-community.R:4:3', 'test-build-home.R:43:3'
  • empty test (1): 'test-templates.R:75:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-build-home.R:7:3'): intermediate files cleaned up automatically ──
  Error in `cit_info$`Date/Publication``: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(build_home(pkg)) at test-build-home.R:7:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-build-home.R:16:3'): intermediate files cleaned up automatically ──
  Error in `cit_info$`Date/Publication``: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(build_home(pkg)) at test-build-home.R:16:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-build-home.R:27:3'): warns about missing images ────────────────
  Error in `cit_info$`Date/Publication``: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(build_home(pkg)) at test-build-home.R:27:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-build-home.R:34:3'): can build site even if no Authors@R present ──
  Error in `cit_info$`Date/Publication``: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(build_home(pkg)) at test-build-home.R:34:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-build-search-docs.R:5:3'): docsearch.json and sitemap.xml are valid ──
  Error in `cit_info$`Date/Publication``: $ operator is invalid for atomic vectors
  Backtrace:
       ▆
    1. ├─base::suppressMessages(expect_message(build_site(pkg, new_process = FALSE))) at test-build-search-docs.R:5:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(build_site(pkg, new_process = FALSE))
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─pkgdown::build_site(pkg, new_process = FALSE)
   10.   └─pkgdown:::build_site_local(...)
   11.     └─pkgdown::build_home(pkg, override = override, preview = FALSE)
   12.       └─pkgdown:::build_citation_authors(pkg)
   13.         └─pkgdown:::data_citations(pkg)
   14.           └─pkgdown:::citation_auto(pkg)
   15.             └─cit_info$`Date/Publication` %||% Sys.time()
  ── Error ('test-build-search-docs.R:30:3'): build_search() builds the expected search`.json with an URL ──
  Error in `cit_info$`Date/Publication``: $ operator is invalid for atomic vectors
  Backtrace:
       ▆
    1. ├─base::suppressMessages(expect_message(build_home(pkg))) at test-build-search-docs.R:30:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(build_home(pkg))
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─pkgdown::build_home(pkg)
   10.   └─pkgdown:::build_citation_authors(pkg)
   11.     └─pkgdown:::data_citations(pkg)
   12.       └─pkgdown:::citation_auto(pkg)
   13.         └─cit_info$`Date/Publication` %||% Sys.time()
  ── Error ('test-build-search-docs.R:53:3'): build_search() builds the expected search.json with no URL ──
  Error in `cit_info$`Date/Publication``: $ operator is invalid for atomic vectors
  Backtrace:
       ▆
    1. ├─base::suppressMessages(expect_message(build_home(pkg))) at test-build-search-docs.R:53:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(build_home(pkg))
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─pkgdown::build_home(pkg)
   10.   └─pkgdown:::build_citation_authors(pkg)
   11.     └─pkgdown:::data_citations(pkg)
   12.       └─pkgdown:::citation_auto(pkg)
   13.         └─cit_info$`Date/Publication` %||% Sys.time()
  ── Error ('test-build.R:7:3'): can build package without any index/readme ──────
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  Error: ! in callr subprocess.
  Caused by error in `` cit_info$`Date/Publication` ``:
  ! $ operator is invalid for atomic vectors
  Backtrace:
       ▆
    1. ├─testthat::expect_output(build_site(pkg)) at test-build.R:7:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─pkgdown::build_site(pkg)
   11.   └─pkgdown:::build_site_external(...)
   12.     └─callr::r(...)
   13.       └─callr:::get_result(output = out, options)
   14.         └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
  ── Error ('test-init.R:11:3'): extra.css and extra.js copied and linked ────────
  Error in `cit_info$`Date/Publication``: $ operator is invalid for atomic vectors
  Backtrace:
       ▆
    1. ├─base::suppressMessages(expect_message(build_home(pkg))) at test-init.R:11:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(build_home(pkg))
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─pkgdown::build_home(pkg)
   10.   └─pkgdown:::build_citation_authors(pkg)
   11.     └─pkgdown:::data_citations(pkg)
   12.       └─pkgdown:::citation_auto(pkg)
   13.         └─cit_info$`Date/Publication` %||% Sys.time()
  
  [ FAIL 9 | WARN 4 | SKIP 107 | PASS 531 ]
  Deleting unused snapshots:
  • build-search-docs/search-no-url.json
  • build-search-docs/search.json
  Error: Test failures
  Execution halted