* using log directory ‘/data/localhost/ripley/R/packages/tests-donttest/PreKnitPostHTMLRender.Rcheck’ * using R Under development (unstable) (2026-11-30 r91009) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-12-01 00:37:33 UTC * checking for file ‘PreKnitPostHTMLRender/DESCRIPTION’ ... OK * this is package ‘PreKnitPostHTMLRender’ version ‘0.1.0’ * 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 ‘PreKnitPostHTMLRender’ 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 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 ... 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 ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘PreKnitPostHTMLRender-Ex.R’ failed The error most likely occurred in: > ### Name: preknit_knit_render_postrender > ### Title: First Pre-knitting Processing, then knitr::knit, then > ### rmarkdown::render, then Post HTML-rendering Processing > ### Aliases: preknit_knit_render_postrender > > ### ** Examples > > ## No test: > oldwd <- getwd() > setwd(tempdir()) > > #pandoc.exe is required to run this code > samplermd <- tempfile('test', getwd(), '.Rmd') > addhtml <- 'test__test.html' > > #generate the test Rmd file > writeLines(c('---', + 'title: "Example Usage"', + 'output: html_document', + '---', + '', + 'This document is used for various similar reports.', + '', + '@@@', + "cat(paste('#Dynamic Header1', rnorm(1)))", + '@@@', + '', + '`%%% writeLines(readLines("test__test.html"))`', + '', + '@@@', + 'cat(paste("##Dynamic Header2", rnorm(1)))', + '@@@', + '', + 'Some content is invariant across different reports.'), samplermd) > > #generate test html file > writeLines(c('