onetime_mark_as_done | R Documentation |
This manually marks an action as done.
onetime_mark_as_done(
id = deprecate_calling_package(),
path = default_lockfile_dir()
)
id |
Unique ID string. If this is unset, the name of the calling
package will be used. Since onetime 0.2.0, not setting |
path |
Directory to store lockfiles. The default uses a unique
directory corresponding to the calling package, beneath
|
Note that no expiry
parameter is available, because expiry
is
backward-looking. See onetime_do()
for more information.
Marking an action done requires permission to store files on the user's computer, just like other onetime actions.
Invisible TRUE
if the action represented
by id
had not been done before, and has now been explicitly marked as done.
Invisible FALSE
if it was already marked as done (and still is).
oo <- options(onetime.dir = tempdir(check = TRUE))
id <- sample(10000L, 1)
onetime_mark_as_done(id = id)
onetime_message("Won't be shown", id = id)
onetime_reset(id = id)
options(oo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.