copyTemplate: Copy Analysis File Template to a Directory

Description Usage Arguments Author(s) Examples

View source: R/copyTemplate.R

Description

Various templates are provided as a part of CCFproprietary that fit the needs of various individuals or departments. copyTemplate allows the user to copy these templates into a project directory without having to manually 'Save As' a file.

Usage

1
2
copyTemplate(templateName, renameAs, copyToDir = getwd(),
  listTemplates = FALSE, ext = c("rmd", "rnw", "rhtml", "tex"), ...)

Arguments

renameAs

A character string giving the new name of the file in the new location.

copyToDir

Location to which the template should be copied.

ext

The file extension for the template.

...

Additional arguments to pass to file.copy.

templatename

The file name of the template. The file extension should be left off. Note that there may be up to four templates for each template name, depending on the extension chosen in ext.

listTemplate

Logical. If TRUE, a list of all available templates will be written to the console. This does not interrupt the normal process of the function.

Author(s)

Benjamin Nutter

Examples

1
2
3
4
5
## Not run: 
copyTemplate("nutter", "01-StudyDesign",
             copyToDir="s_plus")

## End(Not run)

nutterb/junkyard documentation built on May 24, 2019, 10:51 a.m.