comment_add() can be used to log important information about the workflow or its results as you work. Comments can be appended or removed.

comment_add(x, id, ..., append = TRUE, collapse = "\n")

comment_get(x, id)

comment_reset(x, id)

comment_print(x, id = NULL, ...)



A workflow set


A single character string for a value in the wflow_id column. For comment_print(), id can be a vector or NULL (and this indicates that all comments are printed).


One or more character strings.


A logical value to determine if the new comment should be added to the existing values.


A character string that separates the comments.


comment_add() and comment_reset() return an updated workflow set. comment_get() returns a character string. comment_print() returns NULL invisibly.


two_class_set %>% comment_get("none_cart")
#> [1] ""
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)
#> ── none_cart ─────────────────────────────────────────────────────────────────── #> #> What does 'cart' stand for❓ #> #> Classification And Regression Trees. #>
new_set %>% comment_get("none_cart")
#> [1] "What does 'cart' stand for❓\nClassification And Regression Trees."
new_set %>% comment_reset("none_cart") %>% comment_get("none_cart")
#> [1] ""