createPres: Create .Rnw presentation template
Description
Create folder with .Rnw presentation template and fig_extern folder.
Usage
createPres(presname = "pres", dir = "presentation", path = ".",
navbullets = FALSE, bgblack = FALSE, open = TRUE)
Arguments
presname
Name of .Rnw file to be created. DEFAULT: "pres"
dir
Name of directory that will contain .Rnw file and
fig_extern folder. "_1" will be appended if already existing,
see newFilename
. DEFAULT: "presentation"
path
Location of dir
. Passed to setwd
.
DEFAULT: "."
navbullets
Logical: include navigation slide bullet points in header?
DEFAULT: FALSE
bgblack
Logical: set a black background instead of a white one?
Requires all R graphics fg and bg colors to be changed!
See "How to avoid death By PowerPoint" at 11:49 minutes
https://youtu.be/Iwpi1Lm6dFo?t=11m49s.
Change colors manually in the Rnw files searching for
bg=
, linkcolor=
, urlcolor=
in the preamble and color
right after begin document
.
DEFAULT bgblack: FALSE
Examples
Run this code# NOT RUN {
createPres("Berry_Conference")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab