create_slides: Create a deck of slides

Description Usage Arguments Details

Description

This is a wrapper function to rmarkdown::draft that creates a source document for a deck of beamer slides. The template is taken from the template directory of this packages

Usage

1
2
3
create_slides(psSlidesName, psCourseDir = ".", psSlidesSubdir = NULL,
  psSlidesTemplate = "beamer_slides", psTemplatePackage = "rcoursetools",
  psSlidesFormat = "Rmd", pbOverwrite = FALSE)

Arguments

psSlidesName

name of slides source file

psCourseDir

course directory

psSlidesSubdir

subdirectory for current slides

psSlidesTemplate

template for slides which should be used

psTemplatePackage

package from where templates should be copied from

psSlidesFormat

extension of final slides file name

pbOverwrite

whether or not existing slide source files should be overwritten

Details

The setup here is done analogeously to devtools::use_vignette, except that here, we are using different templates and we want to create pdf_ouput and not html_vignette. The template to be used can be specified as a parameter, by default "beamer_slides" is used as a template. We explicitly allow and encourage source files of slides to be organized in subdirectories of the vignettes directory, knowing that this breaks vignette building by the devtools infrastructure. There are several reasons for the subdirectories, first the function rmarkdown::draft gives an error when a file or directory that should be copied from the templated directory already exists in the target directory where it should be copied to. Secondly, we want to have the possibilities to use different documentclasses for different slide documents. Thirdly, putting all slide sources of a complete course in a single directory clutters the whole directory. Hence organizing the material in subdirectories helps us to keep a better overview over the whole course material.


charlotte-ngs/rcoursetools documentation built on May 13, 2019, 3:34 p.m.