Package: onetime 0.2.0
onetime: Run Code Only Once
Allows code to be run only once on a given computer, using lockfiles. Typical use cases include startup messages shown only when a package is loaded for the very first time.
Authors:
onetime_0.2.0.tar.gz
onetime_0.2.0.zip(r-4.5)onetime_0.2.0.zip(r-4.4)onetime_0.2.0.zip(r-4.3)
onetime_0.2.0.tgz(r-4.4-any)onetime_0.2.0.tgz(r-4.3-any)
onetime_0.2.0.tar.gz(r-4.5-noble)onetime_0.2.0.tar.gz(r-4.4-noble)
onetime_0.2.0.tgz(r-4.4-emscripten)onetime_0.2.0.tgz(r-4.3-emscripten)
onetime.pdf |onetime.html✨
onetime/json (API)
NEWS
# Install 'onetime' in R: |
install.packages('onetime', repos = c('https://hughjonesd.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hughjonesd/onetime/issues
Pkgdown:https://hughjonesd.github.io
Last updated 1 years agofrom:e36294db9b (on CRAN-0.2.0). Checks:OK: 3 NOTE: 4. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 13 2024 |
R-4.5-win | OK | Dec 13 2024 |
R-4.5-linux | OK | Dec 13 2024 |
R-4.4-win | NOTE | Dec 13 2024 |
R-4.4-mac | NOTE | Dec 13 2024 |
R-4.3-win | NOTE | Dec 13 2024 |
R-4.3-mac | NOTE | Dec 13 2024 |
Exports:check_ok_to_storeonetime_been_doneonetime_dironetime_doonetime_mark_as_doneonetime_messageonetime_message_confirmonetime_onlyonetime_resetonetime_rlang_informonetime_rlang_warnonetime_startup_messageonetime_warningset_ok_to_store
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Check if the package has permission to store files on the user's computer | check_ok_to_store |
Run code only once | onetime-package onetime |
Check if a onetime call has already been made | onetime_been_done |
Return a path to a directory beneath the onetime base directory | onetime_dir |
Run code only once | onetime_do |
Mark an action as done | onetime_mark_as_done |
Print a message, and ask for confirmation to hide it in future | onetime_message_confirm |
Wrap a function to be called only once | onetime_only |
Reset a onetime call by ID | onetime_reset |
Print a warning or message only once | onetime_message onetime_startup_message onetime_warning |
Print a warning or message only once using 'rlang' functions | onetime-rlang onetime_rlang_inform onetime_rlang_warn |
Grant or revoke permission to store lockfiles on the user's computer | set_ok_to_store |