{
  "_id": "6ab8f30999f7aa8c6aa38cf0",
  "Package": "arg",
  "Type": "Package",
  "Title": "Clean and Simple Argument Checking",
  "Version": "0.2.1",
  "Authors@R": "person(\"Noah\", \"Greifer\", role = c(\"aut\", \"cre\"),\nemail = \"noah.greifer@gmail.com\",\ncomment = c(ORCID=\"0000-0003-3067-7154\"))",
  "Description": "Checks function arguments, ideally for use in R packages.\nUses a simple interface and produces clean, informative error\nmessages using 'cli'.",
  "License": "GPL (>=2)",
  "Encoding": "UTF-8",
  "URL": "https://ngreifer.github.io/arg/, https://github.com/ngreifer/arg",
  "BugReports": "https://github.com/ngreifer/arg/issues",
  "Roxygen": "list(markdown = TRUE)",
  "Config/roxygen2/version": "8.0.0",
  "Config/testthat/edition": "3",
  "Repository": "https://ngreifer.r-universe.dev",
  "Date/Publication": "2026-07-29 16:23:26 UTC",
  "RemoteUrl": "https://github.com/ngreifer/arg",
  "RemoteRef": "HEAD",
  "RemoteSha": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-27 10:39:25 UTC",
    "User": "root"
  },
  "Author": "Noah Greifer [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-3067-7154>)",
  "Maintainer": "Noah Greifer <noah.greifer@gmail.com>",
  "_user": "ngreifer",
  "_type": "src",
  "_file": "arg_0.2.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/801b5d6baf88b3d8a38bf4386cce4cd663c94fc9a1c0e41410ab451924af4d4f",
  "_filesize": 308073,
  "_sha256": "801b5d6baf88b3d8a38bf4386cce4cd663c94fc9a1c0e41410ab451924af4d4f",
  "_expires": "2027-01-05T10:42:15.000Z",
  "_created": "2026-09-27T10:39:25.000Z",
  "_published": "2026-09-27T10:42:17.598Z",
  "_jobs": [
    {
      "job": 108603078581,
      "time": 130,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10929931257"
    },
    {
      "job": 108603078573,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10930055885"
    },
    {
      "job": 108603078617,
      "time": 95,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10929961087"
    },
    {
      "job": 108603078584,
      "time": 74,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10929064263"
    },
    {
      "job": 108602484487,
      "time": 242,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10929253848"
    },
    {
      "job": 108603078510,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10929662711"
    },
    {
      "job": 108603078646,
      "time": 89,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10930175355"
    },
    {
      "job": 108603078648,
      "time": 84,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10929727391"
    },
    {
      "job": 108603078551,
      "time": 96,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10929657626"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480",
  "_status": "success",
  "_upstream": "https://github.com/ngreifer/arg",
  "_commit": {
    "id": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
    "author": "Noah Greifer <noah.greifer@gmail.com>",
    "committer": "Noah Greifer <noah.greifer@gmail.com>",
    "message": "Standardize the text wrapping of cascade error messages\n\nThe multi-line cascades from nested arg_or()/arg_and() are emitted with\nuse_cli_format = FALSE so rlang preserves their indentation, which also\nmeans cli never wrapped them: long bullets ran past the console width\nwhile the single-line messages err() hands to cli wrapped cleanly.\n\nrender_block() now wraps every line it lays out, with a hang indent that\naligns continuations under the bullet text at any nesting depth, and it\nuses cli's own budget so the two paths agree:\n\n* .cnd_width() reads the width cli wraps conditions to\n  (cli.condition_width, then cli.width, then cli's console width)\n  instead of getOption(\"width\").\n\n* .wrap_header() reproduces the \"Error: \" that cli::format_error()\n  reserves on the first physical line, along with the \"! \" prefix rlang\n  puts there and the hang indent it gives the lines below.\n\n* when_supplied()/when_not_null() re-render from the node attached to the\n  caught condition, so their \"When `x` is ...\" prefix joins the header\n  before it is wrapped rather than being pasted onto a line already\n  wrapped without it.\n\nA new test pins the result to what rlang and cli produce for the\nequivalent bulleted condition. Regenerates README.md, whose\nwhen_not_null() example ran 8 columns past the width.\n\nCo-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>\n",
    "time": 1785342206
  },
  "_maintainer": {
    "name": "Noah Greifer",
    "email": "noah.greifer@gmail.com",
    "login": "ngreifer",
    "twitter": "@noah_greifer",
    "description": "Data Science Specialist at Harvard University Institute for Quantitative Social Science (IQSS)",
    "uuid": 20465600,
    "orcid": "0000-0003-3067-7154"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "rlang",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "cli",
      "version": ">= 3.6.4",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "ngreifer",
  "_selfowned": true,
  "_usedby": 30,
  "_updates": [
    {
      "week": "2026-12",
      "n": 3
    },
    {
      "week": "2026-14",
      "n": 11
    },
    {
      "week": "2026-15",
      "n": 4
    },
    {
      "week": "2026-16",
      "n": 2
    },
    {
      "week": "2026-17",
      "n": 1
    },
    {
      "week": "2026-21",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 3
    },
    {
      "week": "2026-24",
      "n": 4
    },
    {
      "week": "2026-28",
      "n": 8
    },
    {
      "week": "2026-29",
      "n": 12
    },
    {
      "week": "2026-30",
      "n": 1
    },
    {
      "week": "2026-31",
      "n": 5
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "ngreifer",
      "count": 55,
      "uuid": 20465600
    }
  ],
  "_userbio": {
    "uuid": 20465600,
    "type": "user",
    "name": "Noah Greifer",
    "followers": 195,
    "description": "Data Science Specialist at Harvard University Institute for Quantitative Social Science (IQSS)"
  },
  "_downloads": {
    "count": 14730,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/arg"
  },
  "_devurl": "https://github.com/ngreifer/arg",
  "_pkgdown": "https://ngreifer.github.io/arg/",
  "_searchresults": 1062,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/arg.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"
  ],
  "_homeurl": "https://github.com/ngreifer/arg",
  "_realowner": "ngreifer",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-04-09"
    },
    {
      "version": "0.1.1",
      "date": "2026-05-27"
    },
    {
      "version": "0.2.0",
      "date": "2026-07-15"
    },
    {
      "version": "0.2.1",
      "date": "2026-07-30"
    }
  ],
  "_exports": [
    "arg_all_NA",
    "arg_and",
    "arg_array",
    "arg_atomic",
    "arg_between",
    "arg_character",
    "arg_colnamed",
    "arg_color",
    "arg_colors",
    "arg_colour",
    "arg_colours",
    "arg_cor",
    "arg_count",
    "arg_counts",
    "arg_cov",
    "arg_data",
    "arg_data.frame",
    "arg_distance",
    "arg_dots_not_supplied",
    "arg_dots_supplied",
    "arg_element",
    "arg_env",
    "arg_equal",
    "arg_factor",
    "arg_flag",
    "arg_formula",
    "arg_function",
    "arg_gt",
    "arg_gte",
    "arg_index",
    "arg_indices",
    "arg_is",
    "arg_is_NA",
    "arg_is_not",
    "arg_length",
    "arg_list",
    "arg_logical",
    "arg_lt",
    "arg_lte",
    "arg_matrix",
    "arg_name",
    "arg_named",
    "arg_names",
    "arg_no_NA",
    "arg_non_null",
    "arg_not_element",
    "arg_not_equal",
    "arg_null",
    "arg_number",
    "arg_numeric",
    "arg_or",
    "arg_ordered",
    "arg_string",
    "arg_supplied",
    "arg_symmetric",
    "arg_unique",
    "arg_vector",
    "arg_whole_number",
    "arg_whole_numeric",
    "err",
    "match_arg",
    "msg",
    "when_not_null",
    "when_supplied",
    "wrn"
  ],
  "_help": [
    {
      "page": "arg_between",
      "title": "Check Values in Range",
      "topics": [
        "arg_between",
        "arg_gt",
        "arg_gte",
        "arg_lt",
        "arg_lte"
      ]
    },
    {
      "page": "arg_character",
      "title": "Check Character Argument",
      "topics": [
        "arg_character",
        "arg_factor",
        "arg_ordered",
        "arg_string"
      ]
    },
    {
      "page": "arg_color",
      "title": "Check Color Argument",
      "topics": [
        "arg_color",
        "arg_colors",
        "arg_colour",
        "arg_colours"
      ]
    },
    {
      "page": "arg_data",
      "title": "Check Common Argument Types",
      "topics": [
        "arg_array",
        "arg_atomic",
        "arg_data",
        "arg_data.frame",
        "arg_env",
        "arg_list",
        "arg_matrix",
        "arg_vector"
      ]
    },
    {
      "page": "arg_dots_supplied",
      "title": "Check Supplied Dots Argument",
      "topics": [
        "arg_dots_not_supplied",
        "arg_dots_supplied"
      ]
    },
    {
      "page": "arg_element",
      "title": "Check Element",
      "topics": [
        "arg_element",
        "arg_not_element"
      ]
    },
    {
      "page": "arg_equal",
      "title": "Check Equal Arguments",
      "topics": [
        "arg_equal",
        "arg_not_equal"
      ]
    },
    {
      "page": "arg_formula",
      "title": "Check Formula Argument",
      "topics": [
        "arg_formula"
      ]
    },
    {
      "page": "arg_function",
      "title": "Check Function Argument",
      "topics": [
        "arg_function"
      ]
    },
    {
      "page": "arg_index",
      "title": "Check Index Argument",
      "topics": [
        "arg_index",
        "arg_indices",
        "arg_name",
        "arg_names"
      ]
    },
    {
      "page": "arg_is",
      "title": "Check Argument Class",
      "topics": [
        "arg_is",
        "arg_is_not"
      ]
    },
    {
      "page": "arg_length",
      "title": "Check Argument Length",
      "topics": [
        "arg_length"
      ]
    },
    {
      "page": "arg_logical",
      "title": "Check Logical Argument",
      "topics": [
        "arg_flag",
        "arg_logical"
      ]
    },
    {
      "page": "arg_named",
      "title": "Check Named Argument",
      "topics": [
        "arg_colnamed",
        "arg_named"
      ]
    },
    {
      "page": "arg_no_NA",
      "title": "Check NA in Argument",
      "topics": [
        "arg_all_NA",
        "arg_is_NA",
        "arg_no_NA"
      ]
    },
    {
      "page": "arg_non_null",
      "title": "Check NULL Argument",
      "topics": [
        "arg_non_null",
        "arg_null"
      ]
    },
    {
      "page": "arg_numeric",
      "title": "Check Numeric Argument",
      "topics": [
        "arg_count",
        "arg_counts",
        "arg_number",
        "arg_numeric",
        "arg_whole_number",
        "arg_whole_numeric"
      ]
    },
    {
      "page": "arg_or",
      "title": "Check That Arguments Meet Some or All Criteria",
      "topics": [
        "arg_and",
        "arg_or"
      ]
    },
    {
      "page": "arg_supplied",
      "title": "Check Supplied Argument",
      "topics": [
        "arg_supplied"
      ]
    },
    {
      "page": "arg_symmetric",
      "title": "Check Symmetric Matrix Argument",
      "topics": [
        "arg_cor",
        "arg_cov",
        "arg_distance",
        "arg_symmetric"
      ]
    },
    {
      "page": "arg_unique",
      "title": "Check Unique Argument",
      "topics": [
        "arg_unique"
      ]
    },
    {
      "page": "err",
      "title": "Throw an Error, Warning, or Message",
      "topics": [
        "err",
        "msg",
        "wrn"
      ]
    },
    {
      "page": "match_arg",
      "title": "Argument Verification",
      "topics": [
        "match_arg"
      ]
    },
    {
      "page": "when_supplied",
      "title": "Check Arguments When Supplied",
      "topics": [
        "when_not_null",
        "when_supplied"
      ]
    }
  ],
  "_pkglogo": "https://github.com/ngreifer/arg/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/ngreifer/arg/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "rlang"
  ],
  "_score": 9.403842278130712,
  "_indexed": true,
  "_nocasepkg": "arg",
  "_universes": [
    "ngreifer"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-09-27T10:41:26.000Z",
      "distro": "resolute",
      "commit": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
      "fileid": "https://r2.ropensci.org/ffbb82de9702bc7973657150a0d6637c6f1c1fc11784357143d2a0af294dbac1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-09-27T10:41:25.000Z",
      "distro": "resolute",
      "commit": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
      "fileid": "https://r2.ropensci.org/4fcb30da7a2e722b113e8efc3a4fbb95a64f9c734d3960a0ac1acbaead5705d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-09-27T10:41:05.000Z",
      "commit": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
      "fileid": "https://r2.ropensci.org/1cb9ae417819e5e0fcaa2001049027806ca1059043b7be8b135ac5bc015df908",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-09-27T10:40:44.000Z",
      "commit": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
      "fileid": "https://r2.ropensci.org/943d45878976bc6b8ea5b50e9259df5005f9f6bcd4414654ca142dd95cce2cff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1",
      "date": "2026-09-27T10:41:23.000Z",
      "commit": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
      "fileid": "https://r2.ropensci.org/4f92f5f3fac16dec87663de3339e7e2abc159ebf40a1da722feaad75c00db9cc",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-09-27T10:40:31.000Z",
      "commit": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
      "fileid": "https://r2.ropensci.org/143350925c620309de6dbd454228ea58b0c9f48aedeed6a578cd87508b304f04",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-09-27T10:40:34.000Z",
      "commit": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
      "fileid": "https://r2.ropensci.org/14d00557122c7645940ca43cd864694e644e419becf65f43f4d49ad2bca3956e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-09-27T10:40:44.000Z",
      "commit": "e9c38b50e865524b596fea8dad164af38aa3e7b3",
      "fileid": "https://r2.ropensci.org/c634c474349d342ef1213073210cd05b9ce81b4ed5c68f2238934ebab2e48ba0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/36313019480"
    }
  ]
}