* using log directory ‘/data/gannet/ripley/R/packages/tests-devel/accessr.Rcheck’ * using R Under development (unstable) (2025-02-28 r87848) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘accessr/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘accessr’ version ‘1.1.1’ * 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 ‘accessr’ can be installed ... OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/accessr-00install.html' for details. * 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 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 ... [8s/20s] 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 ... [9s/22s] ERROR Running examples in ‘accessr-Ex.R’ failed The error most likely occurred in: > ### Name: rmd2many > ### Title: Create content in multiple formats > ### Aliases: rmd2many > > ### ** Examples > > # Create documents from example.Rmd > got_hux <- requireNamespace("huxtable", quietly = TRUE) > got_flex <- requireNamespace("flextable", quietly = TRUE) > got_pandoc <- rmarkdown::pandoc_available("1.14") > got_all <- got_hux && got_flex && got_pandoc > # This example needs packages huxtable and flextable > # We pass pdf = FALSE because OfficeToPDF is needed to convert Word to PDF > # and this is only relevant on Windows Operating System. > # > if (got_all) { + ex_file <- system.file(package = "accessr", "examples", "example.Rmd") + file.copy(ex_file, tdir <- tempdir(check = TRUE), overwrite = TRUE) + ex_file <- list.files(tdir, pattern = "example.Rmd", full.names = TRUE) + ex_file <- sub(".Rmd", "", ex_file) + rmd2many(ex_file, params = list(hide = TRUE), pdf = FALSE, zip = TRUE) + } Error in strsplit(x, as.character(split), fixed, perl, useBytes) : NA in coercion to bool Calls: rmd2many ... lapply -> FUN -> <Anonymous> -> get_fun -> strsplit Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [9s/26s] ERROR Running ‘testthat.R’ [9s/24s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(accessr) > > test_check("accessr") [ FAIL 2 | WARN 0 | SKIP 0 | PASS 7 ] â•â• Failed tests â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• ── Error ('test-rmd2many.R:7:3'): (code run outside of `test_that()`) ────────── Error in `strsplit(x, as.character(split), fixed, perl, useBytes)`: NA in coercion to bool Backtrace: â–† 1. └─accessr::rmd2many(...) at test-rmd2many.R:7:3 2. └─accessr::rmd2word(...) 3. └─base::sapply(1:lenx, docx_fun) 4. └─base::lapply(X = X, FUN = FUN, ...) 5. └─accessr (local) FUN(X[[i]], ...) 6. └─officedown::rdocx_document(reference_docx = doc[i], ...) 7. └─officedown:::get_fun(base_format) 8. └─base::strsplit(x, split = "::", x, fixed = TRUE) ── Error ('test-rmd2word.R:7:3'): (code run outside of `test_that()`) ────────── Error in `strsplit(x, as.character(split), fixed, perl, useBytes)`: NA in coercion to bool Backtrace: â–† 1. └─accessr::rmd2word(...) at test-rmd2word.R:7:3 2. └─base::sapply(1:lenx, docx_fun) 3. └─base::lapply(X = X, FUN = FUN, ...) 4. └─accessr (local) FUN(X[[i]], ...) 5. └─officedown::rdocx_document(reference_docx = doc[i], ...) 6. └─officedown:::get_fun(base_format) 7. └─base::strsplit(x, split = "::", x, fixed = TRUE) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 7 ] Error: Test failures Execution halted * checking PDF version of manual ... [8s/21s] 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