drake (version 6.2.1)

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() parallelism_choices(), drake_hpc_template_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 high-performance computing chapter
# (https://ropenscilabs.github.io/drake-manual/hpc.html)
# to learn how it is used
# in Makefile parallelism.
shell_file()
})
# }

Run the code above in your browser using DataCamp Workspace