extendr / rextendr

An R package that helps scaffolding extendr-enabled packages or compiling Rust code dynamically
https://extendr.github.io/rextendr/
Other
196 stars 28 forks source link

Knitr snapshot test #148

Closed Ilia-Kosenkov closed 3 years ago

Ilia-Kosenkov commented 3 years ago

Adding a {knitr} snapshot test of extendr and extendrsrc engines. The input for knitr::knit() is borrowed from examples presented throughout {rextendr} docs.

This will help us track any unintentional modifications to the knitted output while working on #113.

I put a sample Rmd into ./tests/data, the placement can be discussed. Storing of small test data chunks next to actual test code was suggested in section 14.4 of this article.