Skip to contents

This is part of a multi-step process that converts jupyter notebooks into viable, knitr-ready Rmd files.

Usage

pub_rmd_to_rmd(rmd_in, rmd_out = NULL, conf = list())

Arguments

rmd_in

input file, an rmarkdown file as prepared by rmarkdown::convert_ipynb

rmd_out

output file, an rmarkdown file

conf

a nested list that will be converted into a YAML header

Details

In particular, it encodes knitr cell headers into a class before calling pandoc. This is required because pandoc misunderstands the Rmd syntax. The call to pandoc strips out the existing YAML. Then, the user supplied YAML is written out, followed by a decoding of the class tag to restore any original knitr cell headers.