{
  "_id": "6ab7687699f7aa8c6aa303be",
  "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-09-26 06:34:41 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/2aa075f115145f2d538b091456f206397f04ec8c4282f9905778d37b47db84c4",
  "_filesize": 180770,
  "_sha256": "2aa075f115145f2d538b091456f206397f04ec8c4282f9905778d37b47db84c4",
  "_expires": "2027-01-04T06:38:45.000Z",
  "_created": "2026-09-26T06:34:41.000Z",
  "_published": "2026-09-26T06:38:46.666Z",
  "_jobs": [
    {
      "job": 108354931687,
      "time": 203,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "10899609419"
    },
    {
      "job": 108354931652,
      "time": 130,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10899624121"
    },
    {
      "job": 108354931644,
      "time": 201,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10900023087"
    },
    {
      "job": 108354931683,
      "time": 184,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10900107662"
    },
    {
      "job": 108354346038,
      "time": 249,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10900201047"
    },
    {
      "job": 108354931632,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10900087700"
    },
    {
      "job": 108354931716,
      "time": 117,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "10899634137"
    },
    {
      "job": 108354931641,
      "time": 69,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10900052941"
    },
    {
      "job": 108354931695,
      "time": 95,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10899918426"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078",
  "_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": 108,
  "_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": 920,
    "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": 6977,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/attempt"
  },
  "_devurl": "https://github.com/colinfay/attempt",
  "_searchresults": 234,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/attempt.html",
    "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/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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": 11.996430862659636,
  "_indexed": true,
  "_nocasepkg": "attempt",
  "_universes": [
    "colinfay"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-09-26T06:38:09.000Z",
      "distro": "resolute",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/839d3ae1f2263f53f5ed5899ccea7b5baca6a259724185bc21d7b587d84d5cc6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-09-26T06:36:55.000Z",
      "distro": "resolute",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/5fc288455c757f61661fad7bbb503978043da33d883802f5834a00dd58ac3ab3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-09-26T06:37:39.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/b5616adb5b566a2e012874a74cc6cdf7d391780b0aa7136b528cf6ad6384f4c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-09-26T06:37:04.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/dc8d3123602570eb342e3389607eda1cf0a7e5df26abd9d579e869ad33d93bc1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-09-26T06:36:56.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/c9b2e475d844b93fab8a0cbfb3fc9139d309eaf15f2f77b9a7ccca3489705d3f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-09-26T06:36:01.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/ccb62637ad417a25f2dee1b1a5899b5f6a5242273b497b78b47fb39371330c5b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-09-26T06:35:52.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/1ce5e5612df0f4a0743897df7c7bf1c09f1a997917493e3916feb0d164864d38",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-09-26T06:35:59.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/5832da4383e0684375a6a337142738d3e6ac104a0666837026c6e8a7b05be203",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/36223958078"
    }
  ]
}