View source: R/knit_hand_pres.R
knit_hand_pres | R Documentation |
knit handout and presentation version of .Rnw file, compile tex file in parallel, write progress + tex warnings into a separate .knitlog file
knit_hand_pres(file, presname = "_pres", open = TRUE, cleanup = TRUE, ...)
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
|
cleanup |
Logical: remove intermediate tex files? DEFAULT: TRUE |
... |
Further arguments passed to |
log entries obtained with texlog_warnings
Berry Boessenkool, berry-b@gmx.de, Nov 2017
texlog_warnings
for extracting messages from the TeX .log file
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.