{
  "_id": "6a16291facfb0bcc41d729a0",
  "Package": "onetime",
  "Type": "Package",
  "Title": "Run Code Only Once",
  "Version": "0.2.0",
  "Authors@R": "person(given = \"David\",\nfamily = \"Hugh-Jones\",\nrole = c(\"aut\", \"cre\"),\nemail = \"davidhughjones@gmail.com\")",
  "Author": "David Hugh-Jones [aut, cre]",
  "Maintainer": "David Hugh-Jones <davidhughjones@gmail.com>",
  "Description": "Allows code to be run only once on a given computer, using\nlockfiles. Typical use cases include startup messages shown\nonly when a package is loaded for the very first time.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE, roclets = c(\"collate\", \"rd\",\n\"namespace\", \"doctest::dt_roclet\"))",
  "RoxygenNote": "7.2.3",
  "URL": "https://github.com/hughjonesd/onetime,\nhttps://hughjonesd.github.io/onetime/",
  "BugReports": "https://github.com/hughjonesd/onetime/issues",
  "VignetteBuilder": "knitr",
  "Repository": "https://r-multiverse.r-universe.dev",
  "Date/Publication": "2023-09-03 02:30:08 UTC",
  "RemoteUrl": "https://github.com/hughjonesd/onetime",
  "RemoteRef": "CRAN-0.2.0",
  "RemoteSha": "e36294db9b20ec964487b251fd76306c890d3891",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-26 23:10:41 UTC",
    "User": "root"
  },
  "MD5sum": "a7278f869c89e203a2b4e6521e2e635d",
  "_user": "r-multiverse",
  "_type": "src",
  "_file": "onetime_0.2.0.tar.gz",
  "_fileid": "f01e5355157bba934cb079ce49b51e57ce074c4cc71db538657eb428fb1884d9",
  "_filesize": 151412,
  "_sha256": "f01e5355157bba934cb079ce49b51e57ce074c4cc71db538657eb428fb1884d9",
  "_created": "2026-05-26T23:10:41.000Z",
  "_published": "2026-05-26T23:13:35.730Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77976259600,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7228264131"
    },
    {
      "job": 77976259586,
      "time": 145,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7228264499"
    },
    {
      "job": 77976259658,
      "time": 83,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7228250332"
    },
    {
      "job": 77976259617,
      "time": 106,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7228255474"
    },
    {
      "job": 77975934054,
      "time": 169,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7228230458"
    },
    {
      "job": 77976259579,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7228259081"
    },
    {
      "job": 77976259593,
      "time": 89,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7228251416"
    },
    {
      "job": 77976259609,
      "time": 105,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7228255498"
    },
    {
      "job": 77976259591,
      "time": 89,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7228251601"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/hughjonesd/onetime",
  "_commit": {
    "id": "e36294db9b20ec964487b251fd76306c890d3891",
    "author": "David Hugh-Jones <davidhughjones@gmail.com>",
    "committer": "David Hugh-Jones <davidhughjones@gmail.com>",
    "message": "Update CRAN comments, fix README link\n",
    "time": 1693708208
  },
  "_maintainer": {
    "name": "David Hugh-Jones",
    "email": "davidhughjones@gmail.com",
    "login": "hughjonesd",
    "twitter": "@davidhughjones",
    "description": "Social scientist, R hacker",
    "uuid": 5818871
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "rappdirs",
      "role": "Imports"
    },
    {
      "package": "filelock",
      "role": "Imports"
    },
    {
      "package": "callr",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "doctest",
      "version": ">= 0.1.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lifecycle",
      "role": "Suggests"
    },
    {
      "package": "mockr",
      "role": "Suggests"
    },
    {
      "package": "rlang",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "hughjonesd",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "hughjonesd",
      "count": 181,
      "uuid": 5818871
    }
  ],
  "_userbio": {
    "uuid": 161461790,
    "type": "organization",
    "name": "R-multiverse",
    "description": "A community-curated collection of R package releases, powered by R-universe"
  },
  "_downloads": {
    "count": 183,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/onetime"
  },
  "_devurl": "https://github.com/hughjonesd/onetime",
  "_pkgdown": "https://hughjonesd.github.io/onetime/",
  "_searchresults": 7,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/onetime.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hughjonesd/onetime",
  "_realowner": "hughjonesd",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2022-11-22"
    },
    {
      "version": "0.2.0",
      "date": "2023-09-03"
    }
  ],
  "_exports": [
    "check_ok_to_store",
    "onetime_been_done",
    "onetime_dir",
    "onetime_do",
    "onetime_mark_as_done",
    "onetime_message",
    "onetime_message_confirm",
    "onetime_only",
    "onetime_reset",
    "onetime_rlang_inform",
    "onetime_rlang_warn",
    "onetime_startup_message",
    "onetime_warning",
    "set_ok_to_store"
  ],
  "_help": [
    {
      "page": "check_ok_to_store",
      "title": "Check if the package has permission to store files on the user's computer",
      "topics": [
        "check_ok_to_store"
      ]
    },
    {
      "page": "onetime",
      "title": "Run code only once",
      "topics": [
        "onetime-package",
        "onetime"
      ]
    },
    {
      "page": "onetime_been_done",
      "title": "Check if a onetime call has already been made",
      "topics": [
        "onetime_been_done"
      ]
    },
    {
      "page": "onetime_dir",
      "title": "Return a path to a directory beneath the onetime base directory",
      "topics": [
        "onetime_dir"
      ]
    },
    {
      "page": "onetime_do",
      "title": "Run code only once",
      "topics": [
        "onetime_do"
      ]
    },
    {
      "page": "onetime_mark_as_done",
      "title": "Mark an action as done",
      "topics": [
        "onetime_mark_as_done"
      ]
    },
    {
      "page": "onetime_message_confirm",
      "title": "Print a message, and ask for confirmation to hide it in future",
      "topics": [
        "onetime_message_confirm"
      ]
    },
    {
      "page": "onetime_only",
      "title": "Wrap a function to be called only once",
      "topics": [
        "onetime_only"
      ]
    },
    {
      "page": "onetime_reset",
      "title": "Reset a onetime call by ID",
      "topics": [
        "onetime_reset"
      ]
    },
    {
      "page": "onetime_warning",
      "title": "Print a warning or message only once",
      "topics": [
        "onetime_message",
        "onetime_startup_message",
        "onetime_warning"
      ]
    },
    {
      "page": "onetime-rlang",
      "title": "Print a warning or message only once using 'rlang' functions",
      "topics": [
        "onetime-rlang",
        "onetime_rlang_inform",
        "onetime_rlang_warn"
      ]
    },
    {
      "page": "set_ok_to_store",
      "title": "Grant or revoke permission to store lockfiles on the user's computer",
      "topics": [
        "set_ok_to_store"
      ]
    }
  ],
  "_readme": "https://github.com/hughjonesd/onetime/raw/CRAN-0.2.0/README.md",
  "_rundeps": [
    "filelock",
    "rappdirs"
  ],
  "_vignettes": [
    {
      "source": "onetime.Rmd",
      "filename": "onetime.html",
      "title": "Introduction to onetime",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Motivation",
        "Setup",
        "Basic usage",
        "Allowing the user to hide a message",
        "Setting an expiry time",
        "Using onetime in your package",
        "Utility functions",
        "Going further"
      ],
      "created": "2022-12-08 21:57:01",
      "modified": "2023-09-02 15:43:36",
      "commits": 12
    }
  ],
  "_score": 4,
  "_indexed": false,
  "_nocasepkg": "onetime",
  "_universes": [
    "r-multiverse"
  ],
  "_indexurl": "https://hughjonesd.r-universe.dev/onetime",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-26T23:12:56.000Z",
      "distro": "noble",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "206d93a887444248e29ed81182748a70584adbf87e14d349c38462044213be82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-26T23:12:58.000Z",
      "distro": "noble",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "89960486eb44da1990b26ac7e93cd59978649d56286b6762dae92c82962a7fbe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-26T23:12:01.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "52174957c3f4920d6374ee0200898c1e44d35dc4f4d2f9c3f8da9347c5be6e97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-26T23:12:21.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "2a20bcc8ab0bbff9f21b3cb7ef5a8797e5f78d74de5d6007cc3528fddddef471",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-05-26T23:12:58.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "e11c6982eea3e0dd201ff0e575f36adca45a688bdd6e6343251b007158ab9525",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-26T23:11:58.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "546f97cd2f3e92c0602eee4f110a226b89fac26539708839a0c67781fcbb9373",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-26T23:12:14.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "b30c058b9ea02e900e6a7951e2c2c3bf0ae44462508efb9ed7d428b07cbe76bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-26T23:11:59.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "b92a6f93e0dbd7b0507683246f09d75dbc35b58f0f505e885d48ac973c51c47b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26480323112"
    }
  ]
}