lost_tags_action {safeframe} | R Documentation |
Check and set behaviour for lost tags
Description
This function determines the behaviour to adopt when tagged variables of a
safeframe
are lost for example through subsetting. This is achieved using
options
defined for the safeframe
package.
Usage
lost_tags_action(action = c("warning", "error", "none"), quiet = FALSE)
get_lost_tags_action()
Arguments
action |
a |
quiet |
a |
Details
The errors or warnings generated by safeframe in case of tagged
variable loss has a custom class of safeframe_error
and safeframe_warning
respectively.
Value
returns NULL
; the option itself is set in options("safeframe")
Examples
# reset default - done automatically at package loading
lost_tags_action()
# check current value
get_lost_tags_action()
# change to issue errors when tags are lost
lost_tags_action("error")
get_lost_tags_action()
# change to ignore when tags are lost
lost_tags_action("none")
get_lost_tags_action()
# reset to default: warning
lost_tags_action()
[Package safeframe version 1.0.0 Index]