Creates a new file with header. Function is not exported.
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"
))
}