copy_script2: Copy script to project directory

Description Usage Arguments

View source: R/new_script.R

Description

Will search code library and copy script and dependencies into scripts directory. Script will also be stamped with source location, time and user information

Usage

1
2
3
4
5
6
7
copy_script2(
  from,
  to = file.path(getOption("scripts.dir"), basename(from)),
  stamp_copy = TRUE,
  overwrite = FALSE,
  comment_char = "#"
)

Arguments

from

character. file name or path of file to copy

to

character. file name. default = same as from

stamp_copy

logical. Create a commented timestamp at beginning of file

overwrite

logical. Overwrite 'to' file if exists?

comment_char

character. Comment character


tsahota/TidyProject documentation built on April 19, 2021, 9:14 p.m.