В Fri, 14 Jun 2024 07:58:09 +0200 Roland Fuß <roland.f...@thuenen.de> пишет:
> We have many code chunks with knitr option `error=TRUE`. A recent change required knitr to actually tangle the code for vignettes when requested by R CMD check, with the intent to make sure that the resulting *.R file runs without errors. Unfortunately, chunks with error = TRUE get included in the tangled output, but it's not so simple to fix for historical reasons, partially because a simple tangle would not work for vignettes that expect to interact with the vignette engine from inside their code chunks or rely on the side effects from inline expressions. Tim Taylor has very helpfully provided [*] the link to the knitr issue with more context: https://github.com/yihui/knitr/issues/2338 purl=FALSE should indeed work; see https://github.com/yihui/knitr/pull/2036 and https://stat.ethz.ch/pipermail/r-devel/2014-May/069113.html for more context. -- Best regards, Ivan [*] https://stat.ethz.ch/pipermail/r-package-devel/2024q2/010868.html ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel