onetime_been_done | R Documentation |
Check if a onetime call has already been made
onetime_been_done(
id = deprecate_calling_package(),
path = default_lockfile_dir(),
expiry = NULL
)
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
|
expiry |
|
TRUE
if the call has been recorded (within the
expiry
time, if given).
oo <- options(onetime.dir = tempdir(check = TRUE))
id <- sample(10000L, 1)
onetime_been_done(id = id)
onetime_message("Creating an ID", id = id)
onetime_been_done(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.