{
  "_id": "6a49238db5e98c4082a0b4b4",
  "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-07-04 15:12:50 UTC",
    "User": "root"
  },
  "Author": "Colin Fay [aut, cre] (ORCID: <https://orcid.org/0000-0001-7343-1846>)",
  "Maintainer": "Colin Fay <contact@colinfay.me>",
  "_user": "colinfay",
  "_type": "src",
  "_file": "attempt_0.3.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/70f8900ae955f8f9ec73ee7d6cc15b7b1c7e7cbfbbec786b91d76e916307f639",
  "_filesize": 183171,
  "_sha256": "70f8900ae955f8f9ec73ee7d6cc15b7b1c7e7cbfbbec786b91d76e916307f639",
  "_expires": "2026-10-12T15:15:24.000Z",
  "_created": "2026-07-04T15:12:50.000Z",
  "_published": "2026-07-04T15:15:25.782Z",
  "_jobs": [
    {
      "job": 85142964882,
      "time": 122,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8082871639"
    },
    {
      "job": 85142964889,
      "time": 120,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8082871177"
    },
    {
      "job": 85142964883,
      "time": 70,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8082865854"
    },
    {
      "job": 85142964886,
      "time": 81,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8082866958"
    },
    {
      "job": 85142748955,
      "time": 185,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8082857171"
    },
    {
      "job": 85142964878,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8082869062"
    },
    {
      "job": 85142964911,
      "time": 78,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8082866532"
    },
    {
      "job": 85142964893,
      "time": 52,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8082863645"
    },
    {
      "job": 85142964902,
      "time": 71,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8082865668"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171",
  "_status": "success",
  "_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"
  },
  "_distro": "resolute",
  "_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": 105,
  "_updates": [
    {
      "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",
    "followers": 921,
    "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": 10262,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/attempt"
  },
  "_devurl": "https://github.com/colinfay/attempt",
  "_searchresults": 230,
  "_rbuild": "4.6.1",
  "_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",
    "LICENSE",
    "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.144271672190298,
  "_indexed": true,
  "_nocasepkg": "attempt",
  "_universes": [
    "colinfay"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-07-04T15:14:53.000Z",
      "distro": "resolute",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/4490ace5a731789417f3297d34f83acb3dbc9d59d9456ac0e5ff6b59a868b826",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-07-04T15:14:49.000Z",
      "distro": "resolute",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/793208f930ba21329ceb3454df28b5891671bd3be137b60871fcaef64b3c6912",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-07-04T15:14:06.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/929f51bfb67fd9cbc3d2408e50e9c5b3f054c3a51a3f80fa08346945ead27cbc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-07-04T15:14:14.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/a3903f8437c56c0d52cf2a1be7ee353289b5c31445167e8ad154c3bc97746e6a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-07-04T15:14:43.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/1e2e36b333bcddb239000522a755096d50a774369e0b914d1f79d5174d126a75",
      "status": "success",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-07-04T15:14:04.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/a024e3b478777ba73cb85fc99db6810132aa5147d6a103217de72caa3fdb44d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-07-04T15:13:42.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/82f49935c26749c40e2df6a9ca56d2b5e7de50834eb0f4a657552e219b2cfbb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-07-04T15:13:55.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/7e805d0a1e9e87effaf4bf65814165a870b04866dc46bcf22b4bcab5b46ab655",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/28710335171"
    }
  ]
}