{
  "_id": "6aa7a6a2089bafb098cf3607",
  "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-staging.r-universe.dev",
  "Date/Publication": "2023-09-03 02:30:08 UTC",
  "RemoteUrl": "https://github.com/hughjonesd/onetime",
  "RemoteRef": "e36294db9b20ec964487b251fd76306c890d3891",
  "RemoteSha": "e36294db9b20ec964487b251fd76306c890d3891",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-14 07:14:36 UTC",
    "User": "root"
  },
  "_user": "r-multiverse-staging",
  "_type": "src",
  "_file": "onetime_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/be8f5845c44d8de3e34d963ff9a13e3bd8e2df9e14a6e971c3bd5962ddb5d086",
  "_filesize": 263480,
  "_sha256": "be8f5845c44d8de3e34d963ff9a13e3bd8e2df9e14a6e971c3bd5962ddb5d086",
  "_expires": "2026-12-23T07:47:44.000Z",
  "_created": "2026-09-14T07:14:36.000Z",
  "_published": "2026-09-14T07:47:46.650Z",
  "_jobs": [
    {
      "job": 103889576788,
      "time": 1184,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10337093900"
    },
    {
      "job": 103889576733,
      "time": 203,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10337105904"
    },
    {
      "job": 103889576770,
      "time": 85,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10337886273"
    },
    {
      "job": 103889576709,
      "time": 105,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10337512702"
    },
    {
      "job": 103888774589,
      "time": 193,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10337091266"
    },
    {
      "job": 103889576675,
      "time": 130,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10337125803"
    },
    {
      "job": 103889576827,
      "time": 1530,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10337865321"
    },
    {
      "job": 103889577064,
      "time": 88,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10336886789"
    },
    {
      "job": 103889577009,
      "time": 82,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10336752031"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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",
    "followers": 38,
    "description": "A community-curated collection of R package releases, powered by R-universe"
  },
  "_downloads": {
    "count": 229,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/onetime"
  },
  "_devurl": "https://github.com/hughjonesd/onetime",
  "_pkgdown": "https://hughjonesd.github.io/onetime/",
  "_searchresults": 8,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/onetime.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "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/e36294db9b20ec964487b251fd76306c890d3891/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-staging"
  ],
  "_indexurl": "https://hughjonesd.r-universe.dev/onetime",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-09-14T07:34:07.000Z",
      "distro": "resolute",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/a50f69404b5b1101fee4bd5ca9bb3f93fe884dc9ef6de376f9a1ea311e4e2af5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-09-14T07:17:49.000Z",
      "distro": "resolute",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/200ef61bef7e4fa702f8ab09f1144a5d9b45e594651191119cf76b84fe5a5919",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-09-14T07:47:03.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/9a0875e15b91900523caf70c61e9762ec6912f2d5e92490e11cf6b9a17f9a14d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-09-14T07:43:49.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/eda75cdcf443dc71deba4e5bb1facd17cb679ba7bcd02746b0e2e9c0a7c13a64",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-09-14T07:17:01.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/4dc2ff63ee77332218e441993d91ebadaad8cbdeb4b6ac346f2e514803f6d8f0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-09-14T07:39:50.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/e5b82a14fdb0a6cd5da0f188890d5d6b31162bfeaa64f37819a22defa117a7b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-09-14T07:15:49.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/9a762f079f923a2cc4889957dfd6df57255aea71e6fa70685f861a0bc36e30fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-09-14T07:15:43.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/0d208c2c68ba53fd1a57d1d8db2eba86c305a5a1f095528795599134ff0ef59a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/34816665759"
    }
  ]
}