Skip to contents

Creates a new file with header. Function is not exported.

Usage

ic_copy_script(filepath, rfile_path, open = F)

Arguments

filepath

File to be created.

rfile_path

R file to source

open

Should the file be open (True/False)

Examples

if (FALSE) {
ic_new_file("myfile.R", fs::path_package(
  "integral",
  "templates/example_project/rfile_w_header.R"
))
}