This function also does a chmod +x to enable execute permissions.

shell_file(path = "shell.sh", overwrite = FALSE)

Arguments

path

file path of the shell file

overwrite

logical, whether to overwrite a possible destination file with the same name

Value

The return value of the call to file.copy() that wrote the shell file.

See also

make(), max_useful_jobs(), parallelism_choices(), drake_batchtools_tmpl_file(), drake_example(), drake_examples()

Examples

# NOT RUN {
test_with_dir("Quarantine side effects.", {
# Write shell.sh to your working directory.
# Read the parallelism vignette to learn how it is used
# in Makefile parallelism.
shell_file()
})
# }