try_use_renv | R Documentation |
{renv}
We use this when sandpaper starts to see if the user has previously consented
to {renv}
. The problem is that renv::consent()
throws TRUE
if the user
has consented and an error if it has not :(
try_use_renv(force = FALSE)
force |
if |
This function wraps renv::consent()
in a callr function and transforms the
error into FALSE
. It sets the sandpaper.use_renv
variable to the value of
that check and then returns the full text of the output if FALSE
(this is
the WELCOME message that's given when someone uses {renv}
for the first time)
and the last line of output if TRUE
(a message either that a directory has
been created or that consent has already been provided.)
a character vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.