copy_pkg_files: Save the Source Code Files of a Packaged Drake Workflow

Description Usage Arguments Value Examples

View source: R/copy_pkg_files.R

Description

Copy the files of a packaged drake workflow into a supplied directory.

Usage

1
2
copy_pkg_files(to = getwd(), directories = NULL, overwrite_dirs = FALSE,
  package)

Arguments

to

Character scalar, file path, where to write the folders containing the workflow's files.

directories

Character vector, names of the directories to copy from the source package to the target location

overwrite_dirs

Logical vector (named), A vector of logical values with names that exactly match the directories values

package

Character scalar, the name of the source package

Value

NULL

Examples

1
2
3
4
5
6
7
8
## Not run: 

copy_pkg_files(directories = c("extdata","intdata"),
               overwrite_dirs = c("extdata" = TRUE,"intdata" = TRUE),
               package = "drakepkg")


## End(Not run)

tiernanmartin/drakepkg documentation built on March 11, 2020, 3:11 a.m.