comment_add {workflowsets} | R Documentation |
Add annotations and comments for workflows
Description
comment_add()
can be used to log important information about the workflow or
its results as you work. Comments can be appended or removed.
Usage
comment_add(x, id, ..., append = TRUE, collapse = "\n")
comment_get(x, id)
comment_reset(x, id)
comment_print(x, id = NULL, ...)
Arguments
x |
A workflow set outputted by |
id |
A single character string for a value in the |
... |
One or more character strings. |
append |
A logical value to determine if the new comment should be added to the existing values. |
collapse |
A character string that separates the comments. |
Value
comment_add()
and comment_reset()
return an updated workflow set.
comment_get()
returns a character string. comment_print()
returns NULL
invisibly.
Examples
two_class_set
two_class_set %>% comment_get("none_cart")
new_set <-
two_class_set %>%
comment_add("none_cart", "What does 'cart' stand for\u2753") %>%
comment_add("none_cart", "Classification And Regression Trees.")
comment_print(new_set)
new_set %>% comment_get("none_cart")
new_set %>%
comment_reset("none_cart") %>%
comment_get("none_cart")
[Package workflowsets version 1.1.0 Index]