knitr icon indicating copy to clipboard operation
knitr copied to clipboard

A general-purpose tool for dynamic report generation in R

Results 152 knitr issues
Sort by recently updated
recently updated
newest added

This PR allows implementing `knit_cache_hook` methods which may preprocess objects (e.g., save to an external file) and define custom loaders. I will add a NEWS item after we agree with...

When a chunk is evaluated under `error=TRUE`, **knitr** catches errors as the code is declared to fail. The `hook_purl()`-produced R script, however, does not currently account for that. Here is...

this should produce 2 figures per column: ``` \documentclass{article} \begin{document} = plot(1:100); plot(100:1); plot(1:100); plot(100:1); plot(1:100) @ \end{document} ``` it used to work. now it produces this: --- By filing...

Caching chunks that create an instance of torch module or of a torch dataset yields an `external pointer is not valid` error when the instance is used in another chunk....

--- By filing an issue to this repo, I promise that - [ X] I have fully read the issue guide at https://yihui.org/issue/. - [ X] I have provided the...

I don't know if this is expected behavior, or an issue to fix, but this would be some improvement. It seems `output` hook is using options sets by engine or...

Related to * https://github.com/quarto-dev/quarto-cli/issues/9185 Example ````markdown --- title: "Test" format: typst: keep-typ: true keep-md: true --- ```{r} #| results: asis knitr::asis_output("`#set page(flipped: true)`{=typst}") ``` ```` Using `asis_output()` will not apply...

quarto

The intention of #2264 was "if multiple URLs are present, drop all but the first" and that is also what is documented in `help(write_bib)`: > the first URL listed in...

bug

Related to this [PR](https://github.com/yihui/highr/pull/11) and this [SO](https://stackoverflow.com/questions/71280893/knitr-rnw-highr-error-in-def-sng-color-not-being-created) post.

Firstly, apologies for the huge delay in responding---this is following on from #2305 which got locked after inactivity. While @yihui showed how `eval.after = "tab.cap"` can be included in the...