{
  "_id": "6a49df7c2c82cd36148251b1",
  "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://hughjonesd.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-07-05 04:34:08 UTC",
    "User": "root"
  },
  "_user": "hughjonesd",
  "_type": "src",
  "_file": "onetime_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/fdc8b5dec0569ab3d19d639072b624be926c67c4534a55da0ccb15ee4abc0396",
  "_filesize": 153064,
  "_sha256": "fdc8b5dec0569ab3d19d639072b624be926c67c4534a55da0ccb15ee4abc0396",
  "_expires": "2026-10-13T04:37:15.000Z",
  "_created": "2026-07-05T04:34:08.000Z",
  "_published": "2026-07-05T04:37:16.642Z",
  "_jobs": [
    {
      "job": 85192875219,
      "time": 157,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8088337110"
    },
    {
      "job": 85192875214,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8088336086"
    },
    {
      "job": 85192875224,
      "time": 96,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8088330861"
    },
    {
      "job": 85192875227,
      "time": 95,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8088330903"
    },
    {
      "job": 85192723882,
      "time": 176,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8088320737"
    },
    {
      "job": 85192875212,
      "time": 152,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8088336658"
    },
    {
      "job": 85192875230,
      "time": 88,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8088330054"
    },
    {
      "job": 85192875221,
      "time": 99,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8088331655"
    },
    {
      "job": 85192875220,
      "time": 85,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8088329859"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115",
  "_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": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "hughjonesd",
      "count": 181,
      "uuid": 5818871
    }
  ],
  "_userbio": {
    "uuid": 5818871,
    "type": "user",
    "name": "David Hugh-Jones",
    "followers": 94,
    "description": "Social scientist, R hacker"
  },
  "_downloads": {
    "count": 315,
    "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/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/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": true,
  "_nocasepkg": "onetime",
  "_universes": [
    "hughjonesd"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-07-05T04:36:35.000Z",
      "distro": "resolute",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/b63265400ddedae8012e3a9e13b5d0a86877e0551c5d29ba84417521d93b6994",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-07-05T04:36:25.000Z",
      "distro": "resolute",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/691ce1c9beaa3653578a7990e57badb18d1f76212bf232c113baabc8e678de6f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-07-05T04:35:32.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/d90a221b3df7a843bf2b90a693349e466cef45c06f473526d65a84ef09502f8d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-07-05T04:35:34.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/8b8e82c829b0e0696b191095159a595050d6e3b09614bef427566a8e39d9d7e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-07-05T04:36:53.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/7722e349c28dce0e3854bf120358e412cde0bd32735bd33509f99ae81ea541ea",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-07-05T04:35:20.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/048924fe6c05211d7b97106b627f924df993e7e608396cbcdba7a8c37a42a976",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-07-05T04:35:28.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/4772e16208da4a1437ab104f2df3daea82952d2a55bc1acc159de5c024484f39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-07-05T04:35:20.000Z",
      "commit": "e36294db9b20ec964487b251fd76306c890d3891",
      "fileid": "https://r2.ropensci.org/17632ffe5c419742723c0c876c7fc68cec3ba9676a3601c5a7faac15c6e49acb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/28729530115"
    }
  ]
}