Description Usage Arguments Examples
View source: R/create_task_step.R
The default values of each parameter are often acceptable, but all parameters
may be overridden. When constructing the task makefile or table, the
target_name
, depends
, and command
elements are built in that order,
with each element optionally depending on the result of the previous
elements. They can also depend on the step_name
(defined in this function
call) and/or the task_name
(to be listed in a call to create_task_plan()
,
where the definitions declared here will ultimately be evaluated)
1 2 3 4 5 6 7 8 |
step_name |
a single character string naming this step. The default
|
target_name |
a character string or vector, or a function that produces
a character string or vector, giving a unique name for the remake target
for a specific application of this step to a specific task. If a function,
should accept |
depends |
a character string or vector, or a function that produces a
character string or vector, defining any dependencies that need to be
declared in addition to those implied by |
command |
a character string or vector, or a function that produces a
character string or vector, defining the command to be run for each
application of this step to a specific task. If a function, should accept
|
1 2 3 4 5 6 7 | create_task_step(
'plot',
target_name=function(task_name, step_name, ...) {
sprintf('~/MyProjects/thisproject/%s_%s.png', task_name, step_name)
},
command='plot_site(target_name)'
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.