{
  "_id": "6a1d49501d7bb097a0a42cde",
  "Package": "attempt",
  "Title": "Tools for Defensive Programming",
  "Version": "0.3.1",
  "Authors@R": "person(\"Colin\", \"Fay\", email = \"contact@colinfay.me\", role = c(\"aut\", \"cre\"), comment=c(ORCID=\"0000-0001-7343-1846\"))",
  "Description": "Tools for defensive programming, inspired by 'purrr'\nmappers and based on 'rlang'.'attempt' extends and facilitates\ndefensive programming by providing a consistent grammar, and\nprovides a set of easy to use functions for common tests and\nconditions. 'attempt' only depends on 'rlang', and focuses on\nspeed, so it can be easily integrated in other functions and\nused in data analysis.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "URL": "https://github.com/ColinFay/attempt",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.2",
  "Repository": "https://colinfay.r-universe.dev",
  "Date/Publication": "2026-01-30 08:52:59 UTC",
  "RemoteUrl": "https://github.com/colinfay/attempt",
  "RemoteRef": "HEAD",
  "RemoteSha": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-01 08:54:19 UTC",
    "User": "root"
  },
  "Author": "Colin Fay [aut, cre] (ORCID: <https://orcid.org/0000-0001-7343-1846>)",
  "Maintainer": "Colin Fay <contact@colinfay.me>",
  "MD5sum": "02ba24e55929a5c8f5ac57c24b5e6208",
  "_user": "colinfay",
  "_type": "src",
  "_file": "attempt_0.3.1.tar.gz",
  "_fileid": "2f93b288b479b7030318fb18dbe2dd73d5fc3581bfa5a8b8ca1bb89792a734eb",
  "_filesize": 179282,
  "_sha256": "2f93b288b479b7030318fb18dbe2dd73d5fc3581bfa5a8b8ca1bb89792a734eb",
  "_created": "2026-06-01T08:54:19.000Z",
  "_published": "2026-06-01T08:56:48.498Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78818298828,
      "time": 115,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7327303049"
    },
    {
      "job": 78818298812,
      "time": 113,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7327302285"
    },
    {
      "job": 78818298784,
      "time": 97,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7327296772"
    },
    {
      "job": 78818298815,
      "time": 86,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7327293666"
    },
    {
      "job": 78817848747,
      "time": 162,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7327263299"
    },
    {
      "job": 78818298769,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7327298933"
    },
    {
      "job": 78818298766,
      "time": 74,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7327288591"
    },
    {
      "job": 78818298889,
      "time": 112,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7327302565"
    },
    {
      "job": 78818298837,
      "time": 69,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7327287100"
    }
  ],
  "_buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/colinfay/attempt",
  "_commit": {
    "id": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
    "author": "colin <colin@thinkr.fr>",
    "committer": "colin <colin@thinkr.fr>",
    "message": "ci: with rhub\n",
    "time": 1769763179
  },
  "_maintainer": {
    "name": "Colin Fay",
    "email": "contact@colinfay.me",
    "login": "colinfay",
    "twitter": "@_ColinFay",
    "description": "👨‍💻 Data Science and Engineering at @ThinkR-open. \n\"Chaotic good developer\". \nLoves building things, loves breaking things. \nRuns 🏃‍♂️. \nEats plants 🌱.",
    "uuid": 17936236,
    "orcid": "0000-0001-7343-1846"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "curl",
      "role": "Suggests"
    }
  ],
  "_owner": "colinfay",
  "_selfowned": true,
  "_usedby": 98,
  "_updates": [
    {
      "week": "2025-23",
      "n": 2
    },
    {
      "week": "2026-05",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 125,
  "_contributors": [
    {
      "user": "colinfay",
      "count": 122,
      "uuid": 17936236
    },
    {
      "user": "sowla",
      "count": 3,
      "uuid": 19764028
    },
    {
      "user": "antoine-sachet",
      "count": 1,
      "uuid": 10772583
    },
    {
      "user": "krlmlr",
      "count": 1,
      "uuid": 1741643
    },
    {
      "user": "nfultz",
      "count": 1,
      "uuid": 418638
    },
    {
      "user": "statnmap",
      "count": 1,
      "uuid": 21193866
    }
  ],
  "_userbio": {
    "uuid": 17936236,
    "type": "user",
    "name": "Colin Fay",
    "description": "👨‍💻 Data Science and Engineering at @thinkr-open. \r\n\"Chaotic good developer\". \r\nLoves building things, loves breaking things. \r\nRuns 🏃‍♂️. \r\nEats plants 🌱."
  },
  "_downloads": {
    "count": 10989,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/attempt"
  },
  "_devurl": "https://github.com/colinfay/attempt",
  "_searchresults": 112,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/attempt.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/colinfay/attempt",
  "_realowner": "colinfay",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2018-01-03"
    },
    {
      "version": "0.2.0",
      "date": "2018-01-31"
    },
    {
      "version": "0.2.1",
      "date": "2018-04-20"
    },
    {
      "version": "0.3.0",
      "date": "2019-04-08"
    },
    {
      "version": "0.3.1",
      "date": "2020-05-03"
    }
  ],
  "_exports": [
    "attempt",
    "discretly",
    "if_all",
    "if_any",
    "if_else",
    "if_none",
    "if_not",
    "if_then",
    "is_try_error",
    "map_try_catch",
    "map_try_catch_df",
    "message_if",
    "message_if_all",
    "message_if_any",
    "message_if_none",
    "message_if_not",
    "on_error",
    "silent_attempt",
    "silently",
    "stop_if",
    "stop_if_all",
    "stop_if_any",
    "stop_if_none",
    "stop_if_not",
    "surely",
    "try_catch",
    "try_catch_df",
    "warn_if",
    "warn_if_all",
    "warn_if_any",
    "warn_if_none",
    "warn_if_not",
    "with_message",
    "with_warning",
    "without_message",
    "without_warning"
  ],
  "_help": [
    {
      "page": "attempt",
      "title": "Attempt",
      "topics": [
        "attempt"
      ]
    },
    {
      "page": "discretly",
      "title": "discretly",
      "topics": [
        "discretly"
      ]
    },
    {
      "page": "scopedif",
      "title": "Test for all, any or none",
      "topics": [
        "if_all",
        "if_any",
        "if_none"
      ]
    },
    {
      "page": "ifthenelse",
      "title": "If this, then that",
      "topics": [
        "if_else",
        "if_not",
        "if_then"
      ]
    },
    {
      "page": "is_try_error",
      "title": "Is the element of class \"try-error\"?",
      "topics": [
        "is_try_error"
      ]
    },
    {
      "page": "on_error",
      "title": "Add a function to be run on error",
      "topics": [
        "on_error"
      ]
    },
    {
      "page": "silent_attempt",
      "title": "Silently attempt",
      "topics": [
        "silent_attempt"
      ]
    },
    {
      "page": "silently",
      "title": "Silently",
      "topics": [
        "silently"
      ]
    },
    {
      "page": "messagehandler",
      "title": "Warn if",
      "topics": [
        "message_if",
        "message_if_all",
        "message_if_any",
        "message_if_none",
        "message_if_not",
        "stop_if",
        "stop_if_all",
        "stop_if_any",
        "stop_if_none",
        "stop_if_not",
        "warn_if",
        "warn_if_all",
        "warn_if_any",
        "warn_if_none",
        "warn_if_not"
      ]
    },
    {
      "page": "surely",
      "title": "surely",
      "topics": [
        "surely"
      ]
    },
    {
      "page": "try_catch",
      "title": "Try Catch",
      "topics": [
        "map_try_catch",
        "map_try_catch_df",
        "try_catch",
        "try_catch_df"
      ]
    },
    {
      "page": "messagefunctions",
      "title": "Manipulate messages and warnings",
      "topics": [
        "without_message",
        "without_warning",
        "with_message",
        "with_warning"
      ]
    }
  ],
  "_readme": "https://github.com/colinfay/attempt/raw/HEAD/README.md",
  "_rundeps": [
    "rlang"
  ],
  "_vignettes": [
    {
      "source": "c_adverbs.Rmd",
      "filename": "c_adverbs.html",
      "title": "Adverbs",
      "author": "Colin Fay",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Adverbs",
        "silently()",
        "surely()",
        "with_message() and with_warning()",
        "without_message(), without_warning(), and discretly()"
      ],
      "created": "2018-01-30 16:42:42",
      "modified": "2022-12-14 20:33:25",
      "commits": 3
    },
    {
      "source": "e_conditions.Rmd",
      "filename": "e_conditions.html",
      "title": "Condition handling",
      "author": "Colin Fay",
      "engine": "knitr::rmarkdown",
      "headings": [
        "warnings and messages",
        "In function",
        "none, all, any",
        "on_error()"
      ],
      "created": "2018-01-30 16:42:42",
      "modified": "2022-12-14 20:33:25",
      "commits": 4
    },
    {
      "source": "tests_and_coverage.Rmd",
      "filename": "tests_and_coverage.html",
      "title": "Tests and Coverage",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Coverage",
        "Unit Tests"
      ],
      "created": "2019-04-03 16:17:53",
      "modified": "2019-04-03 16:17:53",
      "commits": 1
    },
    {
      "source": "d_if.Rmd",
      "filename": "d_if.html",
      "title": "If",
      "author": "Colin Fay",
      "engine": "knitr::rmarkdown",
      "headings": [
        "if_ conditions"
      ],
      "created": "2018-01-30 16:42:42",
      "modified": "2022-12-14 20:33:25",
      "commits": 4
    },
    {
      "source": "a_intro_attempt.Rmd",
      "filename": "a_intro_attempt.html",
      "title": "attempt",
      "author": "Colin Fay",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction to",
        "",
        "Install",
        "Using",
        "try catch",
        "adverbs",
        "if",
        "conditions",
        "About mappers",
        "Misc",
        "Acknowledgments",
        "Contact"
      ],
      "created": "2018-01-30 16:42:42",
      "modified": "2019-04-08 06:52:00",
      "commits": 4
    },
    {
      "source": "b_try_catch.Rmd",
      "filename": "b_try_catch.html",
      "title": "Try Catch",
      "author": "Colin Fay",
      "engine": "knitr::rmarkdown",
      "headings": [
        "attempt",
        "silent_attempt",
        "try catch",
        "With mappers",
        "Traditionnal way",
        "try_catch_df()",
        "map_try_catch()"
      ],
      "created": "2018-01-30 16:42:42",
      "modified": "2022-12-14 20:33:25",
      "commits": 5
    }
  ],
  "_score": 12.132554794194267,
  "_indexed": true,
  "_nocasepkg": "attempt",
  "_universes": [
    "colinfay"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-06-01T08:56:17.000Z",
      "distro": "noble",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "5ae66ace62fbbc1774ab7e91e8a6c1b97143cb196ea80641830baec2f38ac7ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-06-01T08:56:15.000Z",
      "distro": "noble",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "8ecd44c0b759bbda1513a598db9997873aa3a64c6abf97ebfb3f0f4d58651c91",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-06-01T08:56:00.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "8d0c59e5ca6130003870485943842d1ebcb88d0a64f5e13e248ac43eec610df6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-06-01T08:55:54.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "9ce73aee51b437bb24fcdfc9797f8e2a40bb5acaf5c4c186f9c9911e8122b892",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-06-01T08:56:18.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "76fba889f8525f93adf8a85948075940d785cc37c241b368c467012d95c6d24f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-01T08:55:29.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "0fc6af8cf8be5d056457030a7d02fdfa4af3401f203eb6b1dbf96f44c4ee7b07",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-01T08:56:11.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "4d5b415224dfad6bbfc6811750e2c341ccdde2f1d63dfd29020a605abbc6acf8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-01T08:55:26.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "dc3f7198c0729e9061e3af656a370ec88020d8005bd845d803b5682d554d2962",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/26744906097"
    }
  ]
}