Running 'testthat.R' [107s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(downlit)
  > 
  > test_check("downlit")
  [ FAIL 3 | WARN 3 | SKIP 29 | PASS 113 ]
  
  ══ Skipped tests (29) ══════════════════════════════════════════════════════════
  • On CRAN (23): 'test-article-index.R:29:3', 'test-downlit-html.R:22:3',
    'test-downlit-html.R:28:3', 'test-downlit-md.R:7:3', 'test-evaluate.R:2:3',
    'test-evaluate.R:6:3', 'test-evaluate.R:11:3', 'test-evaluate.R:21:3',
    'test-evaluate.R:28:3', 'test-evaluate.R:34:3', 'test-evaluate.R:56:3',
    'test-evaluate.R:64:3', 'test-highlight.R:7:3', 'test-highlight.R:52:3',
    'test-highlight.R:78:3', 'test-highlight.R:122:3', 'test-highlight.R:134:3',
    'test-link.R:139:3', 'test-link.R:178:3', 'test-link.R:188:3',
    'test-metadata.R:3:3', 'test-topic-index.R:12:3', 'test-topic-index.R:22:3'
  • On Windows (2): 'test-downlit-html.R:3:3', 'test-highlight.R:46:3'
  • ggraph cannot be loaded (1): 'test-packages.R:50:3'
  • rmarkdown::pandoc_version() < "2.10" is not TRUE (1):
    'test-downlit-md.R:30:3'
  • rmarkdown::pandoc_version() < "2.11" is not TRUE (1):
    'test-downlit-md.R:41:3'
  • tidyverse cannot be loaded (1): 'test-packages.R:55:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-downlit-md.R:58:3'): Special package string gets linked ────────
  Error in `url(sprintf("%s/%s", cran, path), open = "rb")`: cannot open the connection to 'https://cran.rstudio.com/web/packages/packages.rds'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at 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 (local) FUN(X[[i]], ...)
    9.           └─base::lapply(x$c, transform_code, version = version)
   10.             └─downlit (local) 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.                   └─downlit (local) `<fn>`()
   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::gzcon(url(sprintf("%s/%s", cran, path), open = "rb"))
   22.                         └─base::url(sprintf("%s/%s", cran, path), open = "rb")
  ── Error ('test-link.R:63:3'): can link to package names in registered packages ──
  Error in `url(sprintf("%s/%s", cran, path), open = "rb")`: cannot open the connection to 'https://cran.rstudio.com/web/packages/packages.rds'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(autolink_curly("{package}"), NA_character_) at test-link.R:63: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.       └─downlit (local) `<fn>`()
   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::gzcon(url(sprintf("%s/%s", cran, path), open = "rb"))
   16.             └─base::url(sprintf("%s/%s", cran, path), open = "rb")
  ── Error ('test-link.R:150:3'): except when not possible ───────────────────────
  Error in `url(sprintf("%s/%s", cran, path), open = "rb")`: cannot open the connection to 'https://cran.rstudio.com/web/packages/packages.rds'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(href_expr_(library(doesntexist)), topic_library) at test-link.R:150: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.         └─downlit (local) `<fn>`()
   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::gzcon(url(sprintf("%s/%s", cran, path), open = "rb"))
   17.               └─base::url(sprintf("%s/%s", cran, path), open = "rb")
  
  [ FAIL 3 | WARN 3 | SKIP 29 | PASS 113 ]
  Error: Test failures
  Execution halted