Write and execute a Makefile to run a remake workflow.
Use the help_remakeGenerator
function to get more help.
workflow(targets = NULL, make_these = "all", sources = NULL, packages = NULL, remakefile = "remake.yml", makefile = NULL, prepend = NULL, begin = NULL, clean = NULL, remake_args = list(verbose = TRUE), run = TRUE, command = "make", args = character(0))
targets
function.remake
file to generate.
Should be in the current working directory.remake::make("clean")
.remake::make
.
You cannot set target_names
or remake_file
this way because those
names are reserved.command
and args
will be used to call
system2(command = command, args = args)
to run the Makefile
.
For example, to execute the Makefile
using 4 parallel jobs
while suppressing output to the console, use
makefile(..., command = "make", args = c("--jobs=4", "-s"))
.command
.
command
and args
will be used to call
system2(command = command, args = args)
to run the Makefile
.
For example, to execute the Makefile
using 4 parallel jobs
while suppressing output to the console, use
makefile(..., command = "make", args = c("--jobs=4", "-s"))
.Use the help_remakeGenerator
function to get more help.