Learn R Programming

drake (version 5.0.0)

shell_file: Write an example shell.sh file required by make(..., parallelism = 'Makefile', prepend = 'SHELL=./shell.sh').

Description

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

Usage

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

Run this code
# 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()
})
# }

Run the code above in your browser using DataLab