* using log directory ‘/data/gannet/ripley/R/packages/tests-Suggests/downlit.Rcheck’
* using R Under development (unstable) (2024-04-19 r86451)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
gcc-13 (GCC) 13.2.0
GNU Fortran (GCC) 13.2.0
* running under: Fedora Linux 36 (Workstation Edition)
* using session charset: UTF-8
* using option ‘--no-stop-on-test-error’
* checking for file ‘downlit/DESCRIPTION’ ... OK
* this is package ‘downlit’ version ‘0.4.3’
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘downlit’ can be installed ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking code files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking whether startup messages can be suppressed ... OK
* checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [11s/14s] OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking examples ... ERROR
Running examples in ‘downlit-Ex.R’ failed
The error most likely occurred in:
> ### Name: downlit_html_path
> ### Title: Syntax highlight and link an HTML page
> ### Aliases: downlit_html_path downlit_html_node
>
> ### ** Examples
>
> node <- xml2::read_xml("
base::t()
")
Error in loadNamespace(x) : there is no package called ‘xml2’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
Running ‘testthat.R’ [14s/22s]
[15s/23s] ERROR
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(downlit)
>
> test_check("downlit")
[ FAIL 10 | WARN 0 | SKIP 23 | PASS 114 ]
══ Skipped tests (23) ══════════════════════════════════════════════════════════
• MassSpecWavelet cannot be loaded (1): 'test-link.R:177:3'
• On CRAN (20): 'test-article-index.R:29:3', 'test-downlit-html.R:5: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:188:3',
'test-metadata.R:3:3', 'test-topic-index.R:12:3', 'test-topic-index.R:22:3'
• ggraph cannot be loaded (1): 'test-packages.R:50:3'
• tidyverse cannot be loaded (1): 'test-packages.R:55:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-article-index.R:20:3'): can capture index of installed package (no vignettes) ──
Error in `find.package(package, lib.loc)`: there is no package called 'MASS'
Backtrace:
▆
1. ├─testthat::skip_if_not(...) at test-article-index.R:20:3
2. │ └─base::isTRUE(condition)
3. ├─base::nrow(vignette(package = "MASS")$results)
4. └─utils::vignette(package = "MASS")
5. └─tools::getVignetteInfo(package, lib.loc, all)
6. └─base::find.package(package, lib.loc)
── Error ('test-downlit-html.R:12:3'): highlight all pre inside div.downlit ────
Error in `loadNamespace(x)`: there is no package called 'xml2'
Backtrace:
▆
1. └─base::loadNamespace(x) at test-downlit-html.R:12:3
2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
3. └─base (local) withOneRestart(expr, restarts[[1L]])
4. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-downlit-html.R:26:3'): special package string gets linked ──────
Error in `loadNamespace(x)`: there is no package called 'xml2'
Backtrace:
▆
1. └─base::loadNamespace(x) at test-downlit-html.R:26:3
2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
3. └─base (local) withOneRestart(expr, restarts[[1L]])
4. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-downlit-md.R:5:3'): common across multiple versions ────────────
Error in `loadNamespace(x)`: there is no package called 'rmarkdown'
Backtrace:
▆
1. ├─testthat::skip_if_not(rmarkdown::pandoc_version() > "2.0.0") at test-downlit-md.R:5:3
2. │ └─base::isTRUE(condition)
3. └─base::loadNamespace(x)
4. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
5. └─base (local) withOneRestart(expr, restarts[[1L]])
6. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-downlit-md.R:29:3'): pandoc AST v1.20 ──────────────────────────
Error in `loadNamespace(x)`: there is no package called 'rmarkdown'
Backtrace:
▆
1. ├─testthat::skip_if_not(rmarkdown::pandoc_version() > "2.0.0") at test-downlit-md.R:29:3
2. │ └─base::isTRUE(condition)
3. └─base::loadNamespace(x)
4. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
5. └─base (local) withOneRestart(expr, restarts[[1L]])
6. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-downlit-md.R:40:3'): pandoc AST v1.21 ──────────────────────────
Error in `loadNamespace(x)`: there is no package called 'rmarkdown'
Backtrace:
▆
1. ├─testthat::skip_if_not(rmarkdown::pandoc_version() >= "2.10") at test-downlit-md.R:40:3
2. │ └─base::isTRUE(condition)
3. └─base::loadNamespace(x)
4. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
5. └─base (local) withOneRestart(expr, restarts[[1L]])
6. └─base (local) doWithOneRestart(return(expr), restart)
── Error ('test-downlit-md.R:52:3'): Special package string gets linked ────────
Error in `loadNamespace(x)`: there is no package called 'rmarkdown'
Backtrace:
▆
1. ├─testthat::skip_if_not(rmarkdown::pandoc_version() > "2.0.0") at test-downlit-md.R:52:3
2. │ └─base::isTRUE(condition)
3. └─base::loadNamespace(x)
4. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
5. └─base (local) withOneRestart(expr, restarts[[1L]])
6. └─base (local) doWithOneRestart(return(expr), restart)
── Failure ('test-evaluate.R:84:3'): can include literal HTML ──────────────────
as.character(html) (`actual`) not equal to "foo()\nfoo
" (`expected`).
lines(actual) vs lines(expected)
"foo()"
- "#> Error in loadNamespace(x): there is no package called 'htmltools'"
- ""
+ "foo
"
── Error ('test-evaluate.R:90:3'): captures dependencies ───────────────────────
Error in `loadNamespace(x)`: there is no package called 'htmltools'
Backtrace:
▆
1. └─base::loadNamespace(x) at test-evaluate.R:90:3
2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
3. └─base (local) withOneRestart(expr, restarts[[1L]])
4. └─base (local) doWithOneRestart(return(expr), restart)
── Failure ('test-link.R:94:3'): or local sites, if registered ─────────────────
href_expr_(MASS::abbey) (`actual`) not equal to "MASS/reference/abbey.html" (`expected`).
`actual`: NA
`expected`: "MASS/reference/abbey.html"
[ FAIL 10 | WARN 0 | SKIP 23 | PASS 114 ]
Error: Test failures
Execution halted
* checking PDF version of manual ... [8s/12s] OK
* checking HTML version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* DONE
Status: 2 ERRORs
See
‘/data/gannet/ripley/R/packages/tests-Suggests/downlit.Rcheck/00check.log’
for details.
Command exited with non-zero status 1
Time 1:37.51, 61.85 + 9.06