o2r-project / containerit

Package an R workspace and all dependencies as a Docker container
https://o2r.info/containerit/
GNU General Public License v3.0
289 stars 29 forks source link

Re-use output parameters of R Markdown headers as part of CMD_Render #180

Open nuest opened 4 years ago

nuest commented 4 years ago

We should re-use the existing output parameters for the html_document output type, see https://github.com/o2r-project/containerit/blob/51d7b2679623492dc4e09a4baeb31affdf96b686/R/Class-Cmd.R#L163

If an R Markdown document configures the output as follows, the toc configuration is lost in the documented rendered by the container:

output:
  html_document:
    df_print: paged
    toc: yes