Skip to contents

Package documentation

onetime onetime-package
Run code only once

Main functions

onetime_do()
Run code only once
onetime_warning() onetime_message() onetime_startup_message()
Print a warning or message only once
onetime_message_confirm()
Print a message, and ask for confirmation to hide it in future
onetime_rlang_warn() onetime_rlang_inform()
Print a warning or message only once using rlang functions
onetime_only()
Wrap a function to be called only once

Utilities

onetime_reset()
Reset a onetime call by ID
onetime_been_done()
Check if a onetime call has already been made
onetime_mark_as_done()
Mark an action as done
onetime_dir()
Return a path to a directory beneath the onetime base directory
check_ok_to_store()
Check if the package has permission to store files on the user's computer
set_ok_to_store()
Grant or revoke permission to store lockfiles on the user's computer