Skip to contents

Copies a specified file from the vauryou package installation directory to a destination directory.

Usage

copy_vauryou_file(..., to = getwd())

Arguments

...

Parts of path to file from the package directory.

to

Character string specifying the destination directory. Defaults to the current working directory.

Value

Logical value indicating whether the file copy was successful, as returned by file.copy().

Details

This function first locates the file using vauryou_file() and then copies it to the specified destination.

See also

Examples

if (FALSE) { # \dontrun{
# Copy a template file to current directory
copy_vauryou_file("template.Rmd")

# Copy a file to specific directory
copy_vauryou_file("config.yml", to = "~/my_project")
} # }