{
  "_id": "6adefdfb625464c968a95ce8",
  "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-10-26 06:53:45 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/f81f3ec79f466203ad11e72e9bfec7e7381091cf0c53ff5aa3b6271c38b8de71",
  "_filesize": 179718,
  "_sha256": "f81f3ec79f466203ad11e72e9bfec7e7381091cf0c53ff5aa3b6271c38b8de71",
  "_expires": "2027-02-03T07:15:05.000Z",
  "_created": "2026-10-26T06:53:45.000Z",
  "_published": "2026-10-26T07:15:07.606Z",
  "_upstream": "https://github.com/colinfay/attempt",
  "_status": "success",
  "_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"
  },
  "_jobs": [
    {
      "job": 121438787125,
      "time": 106,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12632288370"
    },
    {
      "job": 121438787220,
      "time": 100,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12632807157"
    },
    {
      "job": 121438787226,
      "time": 170,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12633725783"
    },
    {
      "job": 121438787185,
      "time": 167,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12632664025"
    },
    {
      "job": 121437863360,
      "time": 181,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12633146275"
    },
    {
      "job": 121438787190,
      "time": 89,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12633081691"
    },
    {
      "job": 121438787184,
      "time": 78,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12632876043"
    },
    {
      "job": 121438787234,
      "time": 52,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12632697217"
    },
    {
      "job": 121438787270,
      "time": 75,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12632577288"
    }
  ],
  "_buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055",
  "_commit": {
    "id": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
    "author": "colin <colin@thinkr.fr>",
    "committer": "colin <colin@thinkr.fr>",
    "message": "ci: with rhub\n",
    "time": 1769763179
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 113,
  "_updates": [
    {
      "week": "2026-05",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 126,
  "_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": 923,
    "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": 7179,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/attempt"
  },
  "_devurl": "https://github.com/colinfay/attempt",
  "_searchresults": 244,
  "_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": 12.050115282048155,
  "_indexed": true,
  "_nocasepkg": "attempt",
  "_universes": [
    "colinfay"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-10-26T06:55:32.000Z",
      "distro": "resolute",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/97d3468d0401d414d420e7bb9f24581a07c03189866544e0bdf5180ab3352e67",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-10-26T06:55:28.000Z",
      "distro": "resolute",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/51e03e119f82de945d8c94eb43345f0c05f01208ecac166b8c88934fbc049e9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-10-26T07:14:02.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/a695fc6a54169751226849ba99f2fd71673002265f7337206d2371c7bd03f837",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-10-26T07:05:31.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/cae43526f0fa276e6d44f1dfde1eaf46b31978ea4b2523b2cee0006da82eef0c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-10-26T06:55:30.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/1b33c55cb395535ca5350abddd24e2f181fc5a682db182e948a257f8452f646f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-26T06:54:45.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/299d6f93e31476385269e64fc4af7adee4c6b9a1517d18fdb39c2fbabcb8fda6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-26T06:54:41.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/7643da9ce215ee0992f3db869acd5cd229e7559d308127d0b6e3779060846f4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-26T06:54:49.000Z",
      "commit": "2ef9bcc289a10727a82a772383ff8ec0155ba1bf",
      "fileid": "https://r2.ropensci.org/84627b397882aa083b7365297cdc4f10f330ae8af8d9bcb463d9aa409835d277",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/colinfay/actions/runs/40282204055"
    }
  ]
}