%0 Journal Article %9 ACL : Articles dans des revues avec comité de lecture répertoriées par l'AERES %A Kaplan, David %T knitrdata : a tool for creating standalone Rmarkdown source documents %D 2022 %L fdi:010087699 %G ENG %J R Journal %@ 2073-4859 %M ISI:000971621200003 %N 4 %P 6-17 %R 10.32614/RJ-2023-001 %U https://www.documentation.ird.fr/hor/fdi:010087699 %> https://www.documentation.ird.fr/intranet/publi/2023-06/010087699.pdf %V 14 %W Horizon (IRD) %X Though Rmarkdown is a powerful tool for integrating text with code for analyses in a single source document exportable to a variety of output formats, until now there has been no simple way to integrate the data behind analyses into Rmarkdown source documents. The knitrdata package makes it possible for arbitrary text and binary data to be integrated directly into Rmarkdown source documents via implementation of a new data chunk type. The package includes command-line and graphical tools that facilitate creating and inserting data chunks into Rmarkdown documents, and the treatment of data chunks is highly configurable via chunk options. These tools allow one to easily create fully standalone Rmarkdown source documents integrating data, ancillary formatting files, analysis code and text in a single file. Used properly, the package can facilitate open distribution of source documents that demonstrate computational reproducibility of scientific results. %$ 122 ; 020