rknit: Knit a document with knitr

Description Usage Arguments Value

View source: R/rknit.r

Description

Calls knit2pdf (Rnw) or render (Rmd) on a file. Output file will be in the current working directory.

Usage

1
rknit(file, output_format = NULL, ...)

Arguments

file

[character(1)]
Document to knit.

output_format

[character(1)]
pdf_document, html_document or word_document. For Rnw-files output will be always PDF which is generated by running knit2pdf. For Rmd-files the YAML header information for output will be taken into account as default but can be overridden by this parameter. Default is HTML.

...

[any]
Passed to knit2pdf for Rnw-files or passed to render for Rmd-files.

Value

Invisibly returns TRUE on success.


rdatsci/rt documentation built on Dec. 6, 2020, 5:31 p.m.