Running ‘testthat.R’ [25s/58s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgdown)
  > 
  > test_check("pkgdown")
  ── 1. Error: homepage title defaults to package Title (@test-build-home-index.R#
  server certificate verification failed. CAfile: none CRLfile: none
  1: expect_equal(as.character(data_home(pkg))[[1]], "A test package") at testthat/test-build-home-index.R:30
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: data_home(pkg)
  5: print_yaml(list(pagetitle = pkg$meta$home[["title"]] %||% cran_unquote(pkg$desc$get("Title")[[1]]), 
         sidebar = data_home_sidebar(pkg), opengraph = list(description = pkg$meta$home[["description"]] %||% 
             cran_unquote(pkg$desc$get("Description")[[1]]))))
  6: structure(x, class = "print_yaml")
  7: data_home_sidebar(pkg)
  8: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  9: data_home_sidebar_links(pkg)
  10: repo_link(pkg$package)
  11: withVisible(`_f`(pkg = pkg))
  12: `_f`(pkg = pkg)
  13: httr::HEAD(bioc_url)
  14: request_perform(req, hu$handle$handle)
  15: request_fetch(req$output, req$url, handle)
  16: request_fetch.write_memory(req$output, req$url, handle)
  17: curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: homepage title can be overridden (@test-build-home-index.R#42)  ───
  server certificate verification failed. CAfile: none CRLfile: none
  1: expect_equal(as.character(data_home(pkg))[[1]], "Such a cool package") at testthat/test-build-home-index.R:42
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: data_home(pkg)
  5: print_yaml(list(pagetitle = pkg$meta$home[["title"]] %||% cran_unquote(pkg$desc$get("Title")[[1]]), 
         sidebar = data_home_sidebar(pkg), opengraph = list(description = pkg$meta$home[["description"]] %||% 
             cran_unquote(pkg$desc$get("Description")[[1]]))))
  6: structure(x, class = "print_yaml")
  7: data_home_sidebar(pkg)
  8: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  9: data_home_sidebar_links(pkg)
  10: repo_link(pkg$package)
  11: withVisible(`_f`(pkg = pkg))
  12: `_f`(pkg = pkg)
  13: httr::HEAD(bioc_url)
  14: request_perform(req, hu$handle$handle)
  15: request_fetch(req$output, req$url, handle)
  16: request_fetch.write_memory(req$output, req$url, handle)
  17: curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Error: homepage description defaults to package Description (@test-build-h
  server certificate verification failed. CAfile: none CRLfile: none
  1: expect_true(grepl("A test package", as.character(data_home(pkg))[[3]], )) at testthat/test-build-home-index.R:51
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: grepl("A test package", as.character(data_home(pkg))[[3]], )
  5: data_home(pkg)
  6: print_yaml(list(pagetitle = pkg$meta$home[["title"]] %||% cran_unquote(pkg$desc$get("Title")[[1]]), 
         sidebar = data_home_sidebar(pkg), opengraph = list(description = pkg$meta$home[["description"]] %||% 
             cran_unquote(pkg$desc$get("Description")[[1]]))))
  7: structure(x, class = "print_yaml")
  8: data_home_sidebar(pkg)
  9: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  10: data_home_sidebar_links(pkg)
  11: repo_link(pkg$package)
  12: withVisible(`_f`(pkg = pkg))
  13: `_f`(pkg = pkg)
  14: httr::HEAD(bioc_url)
  15: request_perform(req, hu$handle$handle)
  16: request_fetch(req$output, req$url, handle)
  17: request_fetch.write_memory(req$output, req$url, handle)
  18: curl::curl_fetch_memory(url, handle = handle)
  
  ── 4. Error: homepage description can be overridden (@test-build-home-index.R#64
  server certificate verification failed. CAfile: none CRLfile: none
  1: expect_true(grepl("A free description.", as.character(data_home(pkg))[[3]], )) at testthat/test-build-home-index.R:64
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: grepl("A free description.", as.character(data_home(pkg))[[3]], )
  5: data_home(pkg)
  6: print_yaml(list(pagetitle = pkg$meta$home[["title"]] %||% cran_unquote(pkg$desc$get("Title")[[1]]), 
         sidebar = data_home_sidebar(pkg), opengraph = list(description = pkg$meta$home[["description"]] %||% 
             cran_unquote(pkg$desc$get("Description")[[1]]))))
  7: structure(x, class = "print_yaml")
  8: data_home_sidebar(pkg)
  9: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  10: data_home_sidebar_links(pkg)
  11: repo_link(pkg$package)
  12: withVisible(`_f`(pkg = pkg))
  13: `_f`(pkg = pkg)
  14: httr::HEAD(bioc_url)
  15: request_perform(req, hu$handle$handle)
  16: request_fetch(req$output, req$url, handle)
  17: request_fetch.write_memory(req$output, req$url, handle)
  18: curl::curl_fetch_memory(url, handle = handle)
  
  ── 5. Error: intermediate files cleaned up automatically (@test-build_home.R#9) 
  server certificate verification failed. CAfile: none CRLfile: none
  1: expect_output(build_home(pkg)) at testthat/test-build_home.R:9
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: build_home(pkg)
  ...
  16: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  17: data_home_sidebar_links(pkg)
  18: repo_link(pkg$package)
  19: withVisible(`_f`(pkg = pkg))
  20: `_f`(pkg = pkg)
  21: httr::HEAD(bioc_url)
  22: request_perform(req, hu$handle$handle)
  23: request_fetch(req$output, req$url, handle)
  24: request_fetch.write_memory(req$output, req$url, handle)
  25: curl::curl_fetch_memory(url, handle = handle)
  
  ── 6. Error: intermediate files cleaned up automatically (@test-build_home.R#19)
  server certificate verification failed. CAfile: none CRLfile: none
  1: expect_output(build_home(pkg)) at testthat/test-build_home.R:19
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: build_home(pkg)
  ...
  16: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  17: data_home_sidebar_links(pkg)
  18: repo_link(pkg$package)
  19: withVisible(`_f`(pkg = pkg))
  20: `_f`(pkg = pkg)
  21: httr::HEAD(bioc_url)
  22: request_perform(req, hu$handle$handle)
  23: request_fetch(req$output, req$url, handle)
  24: request_fetch.write_memory(req$output, req$url, handle)
  25: curl::curl_fetch_memory(url, handle = handle)
  
  ── 7. Error: can build site even if no Authors@R present (@test-build_home.R#32)
  server certificate verification failed. CAfile: none CRLfile: none
  1: expect_output(build_home(pkg)) at testthat/test-build_home.R:32
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: build_home(pkg)
  ...
  16: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  17: data_home_sidebar_links(pkg)
  18: repo_link(pkg$package)
  19: withVisible(`_f`(pkg = pkg))
  20: `_f`(pkg = pkg)
  21: httr::HEAD(bioc_url)
  22: request_perform(req, hu$handle$handle)
  23: request_fetch(req$output, req$url, handle)
  24: request_fetch.write_memory(req$output, req$url, handle)
  25: curl::curl_fetch_memory(url, handle = handle)
  
  ── 8. Failure: build_home fails with empty readme.md (@test-build_home.R#45)  ──
  `build_home(pkg)` threw an error with unexpected message.
  Expected match: "non-empty"
  Actual message: "server certificate verification failed. CAfile: none CRLfile: none"
  
  ── 9. Error: can build package without any index/readme (@test-build_site.R#7)  
  callr subprocess failed: server certificate verification failed. CAfile: none CRLfile: none
  1: expect_output(build_site(pkg)) at testthat/test-build_site.R:7
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: build_site(pkg)
  11: build_site_external(pkg = pkg, examples = examples, run_dont_run = run_dont_run, 
         seed = seed, lazy = lazy, override = override, preview = preview, devel = devel)
  12: callr::r(function(..., crayon_enabled, crayon_colors, pkgdown_internet) {
         options(crayon.enabled = crayon_enabled, crayon.colors = crayon_colors, pkgdown.internet = pkgdown_internet)
         pkgdown::build_site(...)
     }, args = args, show = TRUE, timeout = getOption("pkgdown.timeout", Inf))
  13: get_result(output = out, options)
  14: throw(new_callr_error(output, msg), parent = err[[2]])
  
  ── 10. Error: extra.css and extra.js copied and linked (@test-init.R#13)  ──────
  server certificate verification failed. CAfile: none CRLfile: none
  1: expect_output(build_home(pkg)) at testthat/test-init.R:13
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: build_home(pkg)
  ...
  16: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  17: data_home_sidebar_links(pkg)
  18: repo_link(pkg$package)
  19: withVisible(`_f`(pkg = pkg))
  20: `_f`(pkg = pkg)
  21: httr::HEAD(bioc_url)
  22: request_perform(req, hu$handle$handle)
  23: request_fetch(req$output, req$url, handle)
  24: request_fetch.write_memory(req$output, req$url, handle)
  25: curl::curl_fetch_memory(url, handle = handle)
  
  ── 11. Error: og tags are populated on home, reference, and articles (@test-temp
  server certificate verification failed. CAfile: none CRLfile: none
  1: setup(expect_output(build_site(pkg, new_process = FALSE))) at testthat/test-template-content.R:9
  2: eval_tidy(enquo(code), env = env)
  3: expect_output(build_site(pkg, new_process = FALSE))
  4: quasi_capture(enquo(object), label, capture_output, width = width)
  5: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  6: capture_output_lines(code, print, width = width)
  7: eval_with_output(code, print = print, width = width)
  8: withr::with_output_sink(temp, withVisible(code))
  9: force(code)
  10: withVisible(code)
  ...
  20: paste0(data_home_sidebar_links(pkg), data_home_sidebar_license(pkg), data_home_sidebar_community(pkg), 
         data_home_sidebar_citation(pkg), data_home_sidebar_authors(pkg), collapse = "\n")
  21: data_home_sidebar_links(pkg)
  22: repo_link(pkg$package)
  23: withVisible(`_f`(pkg = pkg))
  24: `_f`(pkg = pkg)
  25: httr::HEAD(bioc_url)
  26: request_perform(req, hu$handle$handle)
  27: request_fetch(req$output, req$url, handle)
  28: request_fetch.write_memory(req$output, req$url, handle)
  29: curl::curl_fetch_memory(url, handle = handle)
  
  ── 12. Error: if there is no logo.png, there is no og:image tag (@test-template-
  '/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/pkgdown.Rcheck/tests/testthat/assets/home-readme-rmd/docs' is non-empty and not built by pkgdown
  1: expect_output(build_site(pkg, new_process = FALSE)) at testthat/test-template-content.R:36
  2: quasi_capture(enquo(object), label, capture_output, width = width)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(.quo), get_env(.quo))
  10: build_site(pkg, new_process = FALSE)
  11: build_site_local(pkg = pkg, examples = examples, run_dont_run = run_dont_run, seed = seed, 
         lazy = lazy, override = override, preview = preview, devel = devel)
  12: init_site(pkg)
  13: stop(dst_path(pkg$dst_path), " is non-empty and not built by pkgdown", call. = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 315 | SKIPPED: 11 | WARNINGS: 0 | FAILED: 12 ]
  1. Error: homepage title defaults to package Title (@test-build-home-index.R#30) 
  2. Error: homepage title can be overridden (@test-build-home-index.R#42) 
  3. Error: homepage description defaults to package Description (@test-build-home-index.R#51) 
  4. Error: homepage description can be overridden (@test-build-home-index.R#64) 
  5. Error: intermediate files cleaned up automatically (@test-build_home.R#9) 
  6. Error: intermediate files cleaned up automatically (@test-build_home.R#19) 
  7. Error: can build site even if no Authors@R present (@test-build_home.R#32) 
  8. Failure: build_home fails with empty readme.md (@test-build_home.R#45) 
  9. Error: can build package without any index/readme (@test-build_site.R#7) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted