consent | R Documentation |
Potentially destructive actions require that you confirm that you really
want to do them. If you're running a script and you know that you want to
perform those actions, you can preemptively provide consent
.
consent()
with_consent(expr)
expr |
Code to evaluate with consent |
consent
returns an S3 class "contextManager" object, which
you can use with with
. with_consent
evaluates its arguments
inside the consent
context.
with-context-manager
ContextManager
## Not run:
with(consent(), delete(ds))
# Equivalent to:
with_consent(delete(ds))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.