View source: R/resource_projects.R
This target factory creates a target for each element of a PEP. You can name the targets using a pattern that uses brackets to indicate sample attributes, like 'sample_name'.
1 2 3 4 5 6 7 8 9 10 | tar_pep_foreach(
p,
tpattern,
func,
argvals_pattern,
argtypes,
argnames = NULL,
combine_tname = NULL,
combine_func_name = "list"
)
|
p |
PEP. |
tpattern |
Target name, with patterns allowed |
func |
Function to call |
argvals_pattern |
List of arg values, with patterns allowed |
argtypes |
List of arg types (use 'symbol' for targets) |
argnames |
List of arg names |
combine_tname |
Target name for a combined target that merges all of the individual targets |
combine_func_name |
Character vector of a function that will combine them. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.