knitr (version 0.4)

knit2pdf: Convert Rnw to PDF using knit and texi2pdf

Description

Knit the input Rnw document to a tex document, and compile it using texi2pdf.

Usage

knit2pdf(input, output = NULL, compiler = NULL)

Arguments

compiler
a character string which gives the LaTeX program used to compile the tex document to PDF (by default it uses the default setting of texi2pdf, which is often PDFLaTeX); this argument will be us
input
path of the input file
output
path of the output file; if NULL, this function will try to guess and it will be under the current working directory

See Also

knit, texi2pdf

Examples

Run this code
## compile with xelatex
## knit2pdf(..., compiler = 'xelatex')

Run the code above in your browser using DataLab