onetime_reset {onetime} | R Documentation |
Reset a onetime call by ID
Description
Reset a onetime call by ID
Usage
onetime_reset(id = deprecate_calling_package(), path = default_lockfile_dir())
Arguments
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
|
Value
The result of file.remove()
, invisibly.
Examples
oo <- options(onetime.dir = tempdir(check = TRUE))
id <- sample(10000L, 1)
onetime_message("will be shown", id = id)
onetime_message("won't be shown", id = id)
onetime_reset(id = id)
onetime_message("will be shown", id = id)
onetime_reset(id = id)
options(oo)
[Package onetime version 0.2.0 Index]