Running ‘testthat.R’ [7s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(downlit)
  > 
  > test_check("downlit")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (23)
  • ggraph cannot be loaded (1)
  • rmarkdown::pandoc_version() >= "2.10" is not TRUE (1)
  • tidyverse cannot be loaded (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-downlit-md.R:58:3): Special package string gets linked ──────────
  Error in `readRDS(con)`: error reading from connection
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-downlit-md.R:58:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─downlit::downlit_md_string("`{thisisrealltnotapackagename}`")
    5.   └─downlit::downlit_md_path(path, path, format = format)
    6.     └─downlit:::transform_code(ast$blocks, ast_version(ast))
    7.       └─base::lapply(x, transform_code, version = version)
    8.         └─downlit:::FUN(X[[i]], ...)
    9.           └─base::lapply(x$c, transform_code, version = version)
   10.             └─downlit:::FUN(X[[i]], ...)
   11.               └─downlit::href_package(package_name)
   12.                 └─downlit:::package_urls(package)
   13.                   ├─downlit:::CRAN_urls()
   14.                   │ ├─base::withVisible(eval(mc, parent.frame()))
   15.                   │ └─base::eval(mc, parent.frame())
   16.                   │   └─base::eval(mc, parent.frame())
   17.                   └─(function () ...
   18.                     └─tools::CRAN_package_db()
   19.                       ├─base::as.data.frame(...)
   20.                       └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   21.                         └─base::readRDS(con)
  ── Error (test-link.R:59:3): can link to package names in registered packages ──
  Error in `readRDS(con)`: error reading from connection
  Backtrace:
       █
    1. ├─testthat::expect_equal(autolink_curly("{package}"), NA_character_) test-link.R:59:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─downlit:::autolink_curly("{package}")
    5.   └─downlit::href_package(package_name)
    6.     └─downlit:::package_urls(package)
    7.       ├─downlit:::CRAN_urls()
    8.       │ ├─base::withVisible(eval(mc, parent.frame()))
    9.       │ └─base::eval(mc, parent.frame())
   10.       │   └─base::eval(mc, parent.frame())
   11.       └─(function () ...
   12.         └─tools::CRAN_package_db()
   13.           ├─base::as.data.frame(...)
   14.           └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   15.             └─base::readRDS(con)
  ── Error (test-link.R:143:3): except when not possible ─────────────────────────
  Error in `readRDS(con)`: error reading from connection
  Backtrace:
       █
    1. ├─testthat::expect_equal(href_expr_(library(doesntexist)), "https://rdrr.io/r/base/library.html") test-link.R:143:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─downlit:::href_expr_(library(doesntexist))
    5.   └─downlit:::href_expr(substitute(expr), ...)
    6.     └─downlit::href_package(pkg)
    7.       └─downlit:::package_urls(package)
    8.         ├─downlit:::CRAN_urls()
    9.         │ ├─base::withVisible(eval(mc, parent.frame()))
   10.         │ └─base::eval(mc, parent.frame())
   11.         │   └─base::eval(mc, parent.frame())
   12.         └─(function () ...
   13.           └─tools::CRAN_package_db()
   14.             ├─base::as.data.frame(...)
   15.             └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   16.               └─base::readRDS(con)
  ── Error (test-link.R:222:3): href_package can handle non-existing packages ────
  Error in `readRDS(con)`: error reading from connection
  Backtrace:
       █
    1. ├─testthat::expect_equal(href_package("NotAPackage"), NA_character_) test-link.R:222:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─downlit::href_package("NotAPackage")
    5.   └─downlit:::package_urls(package)
    6.     ├─downlit:::CRAN_urls()
    7.     │ ├─base::withVisible(eval(mc, parent.frame()))
    8.     │ └─base::eval(mc, parent.frame())
    9.     │   └─base::eval(mc, parent.frame())
   10.     └─(function () ...
   11.       └─tools::CRAN_package_db()
   12.         ├─base::as.data.frame(...)
   13.         └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   14.           └─base::readRDS(con)
  
  [ FAIL 4 | WARN 0 | SKIP 26 | PASS 102 ]
  Error: Test failures
  Execution halted