Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(downlit)
  > 
  > test_check("downlit")
  [ FAIL 4 | WARN 0 | SKIP 30 | PASS 108 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (24)
  • On Windows (2)
  • ggraph cannot be loaded (1)
  • rmarkdown::pandoc_version() < "2.10" is not TRUE (1)
  • rmarkdown::pandoc_version() < "2.11" 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)`: embedded nul in string: 'c(\n    person("Kleber Morais de","Sousa", role = c("aut", "cre"), email = "kleberfinancas@gmail.com"),\n    person("Maria da ConcefamD =   person("Klso", role =5on("K)),\n             person("Shuangge\xb3\n        prole     A       ac.uk"a@gmail.coole @oole nac.m", role = c("aut")))\0\004\0\t\0\0\001"Maslova", role="\0\t\xff\xff\xff\xff\0\0\0'
  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::readRDS(con)
  ── Error (test-link.R:63:3): can link to package names in registered packages ──
  Error in `readRDS(con)`: embedded nul in string: 'c(\n    person("Kleber Morais de","Sousa", role = c("aut", "cre"), email = "kleberfinancas@gmail.com"),\n    person("Maria da ConcefamD =   person("Klso", role =5on("K)),\n             person("Shuangge\xb3\n        prole     A       ac.uk"a@gmail.coole @oole nac.m", role = c("aut")))\0\004\0\t\0\0\001"Maslova", role="\0\t\xff\xff\xff\xff\0\0\0'
  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::readRDS(con)
  ── Error (test-link.R:150:3): except when not possible ─────────────────────────
  Error in `readRDS(con)`: embedded nul in string: 'c(\n    person("Kleber Morais de","Sousa", role = c("aut", "cre"), email = "kleberfinancas@gmail.com"),\n    person("Maria da ConcefamD =   person("Klso", role =5on("K)),\n             person("Shuangge\xb3\n        prole     A       ac.uk"a@gmail.coole @oole nac.m", role = c("aut")))\0\004\0\t\0\0\001"Maslova", role="\0\t\xff\xff\xff\xff\0\0\0'
  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::readRDS(con)
  ── Error (test-link.R:246:3): href_package can handle non-existing packages ────
  Error in `readRDS(con)`: embedded nul in string: 'c(\n    person("Kleber Morais de","Sousa", role = c("aut", "cre"), email = "kleberfinancas@gmail.com"),\n    person("Maria da ConcefamD =   person("Klso", role =5on("K)),\n             person("Shuangge\xb3\n        prole     A       ac.uk"a@gmail.coole @oole nac.m", role = c("aut")))\0\004\0\t\0\0\001"Maslova", role="\0\t\xff\xff\xff\xff\0\0\0'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(href_package("NotAPackage"), NA_character_) at test-link.R:246: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.     └─downlit (local) `<fn>`()
   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 30 | PASS 108 ]
  Error: Test failures
  Execution halted