new_trick | R Documentation |
Create a trick object
new_trick(label, condition, action, description = label, ...)
label |
A string |
condition |
A call or a one sided formula, using condition helpers and context informers, whose right hand side expressions returns a boolean when evaluated by tricks |
action |
A call or a one sided formula, using action helpers and context informers, whose right hand side triggers the desired actions when evaluated by tricks |
description |
The description of the trick, for documentation purposes |
... |
other properties to print with the object and in YAML files |
A list of class "trick_object"
new_trick(
"Edit user '.Rprofile'",
~ selection_is_empty(),
~ usethis::edit_r_profile()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.