knit_hand_pres: knit handout and presentation version of .Rnw file

View source: R/knit_hand_pres.R

knit_hand_presR Documentation

knit handout and presentation version of .Rnw file

Description

knit handout and presentation version of .Rnw file, compile tex file in parallel, write progress + tex warnings into a separate .knitlog file

Usage

knit_hand_pres(file, presname = "_pres", open = TRUE, cleanup = TRUE, ...)

Arguments

file

Char: .Rnw file name to be knitted

presname

Char: inset that will get appended to file name. DEFAULT: "_pres"

open

Logical: Open the resulting pdfs with berryFunctions::openFile? DEFAULT: TRUE

cleanup

Logical: remove intermediate tex files? DEFAULT: TRUE

...

Further arguments passed to tools::texi2pdf

Value

log entries obtained with texlog_warnings

Author(s)

Berry Boessenkool, berry-b@gmx.de, Nov 2017

See Also

texlog_warnings for extracting messages from the TeX .log file

Examples

## Not run: ## Exclude time consuming test from regular testing

# Copy Rnw file to temporary folder ---
rnwfile <- system.file("extdata/minimalpres.Rnw", package="knitPres")
dir.create("TempKnitFolder")
owd <- setwd("TempKnitFolder") ; getwd()
file.copy(rnwfile, "minimalpres.Rnw")

# Actual knitting ----
knit_hand_pres(file="minimalpres.Rnw")

# clean up ----
setwd(owd) ; getwd()
unlink("TempKnitFolder", recursive=TRUE)

## End(Not run)


brry/knitPres documentation built on Oct. 22, 2022, 2:51 a.m.