{
  "_id": "6a19c707ad7a21ec8945f620",
  "Package": "nectar",
  "Title": "A Framework for Web API Packages",
  "Version": "0.0.0.9007",
  "Authors@R": "c(\nperson(\"Jon\", \"Harmon\", , \"jonthegeek@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-4781-4346\")),\nperson(\"R Consortium\", role = \"fnd\")\n)",
  "Description": "An opinionated framework for use within api-wrapping R\npackages.",
  "License": "MIT + file LICENSE",
  "URL": "https://nectar.api2r.org, https://github.com/api2r/nectar",
  "BugReports": "https://github.com/api2r/nectar/issues",
  "VignetteBuilder": "knitr",
  "Remotes": [
    "wranglezone/tibblify"
  ],
  "Config/roxygen2/version": "8.0.0",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libssl-dev",
  "Repository": "https://api2r.r-universe.dev",
  "Date/Publication": "2026-05-12 19:59:54 UTC",
  "RemoteUrl": "https://github.com/api2r/nectar",
  "RemoteRef": "HEAD",
  "RemoteSha": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-29 17:00:19 UTC",
    "User": "root"
  },
  "Author": "Jon Harmon [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-4781-4346>),\nR Consortium [fnd]",
  "Maintainer": "Jon Harmon <jonthegeek@gmail.com>",
  "MD5sum": "21e65b63e8fa81d88aa238fede31779b",
  "_user": "api2r",
  "_type": "src",
  "_file": "nectar_0.0.0.9007.tar.gz",
  "_fileid": "63b66b7f68a5d7de91545a7989bc2715db752d789f098a1d1a60c63599c846f6",
  "_filesize": 526963,
  "_sha256": "63b66b7f68a5d7de91545a7989bc2715db752d789f098a1d1a60c63599c846f6",
  "_created": "2026-05-29T17:00:19.000Z",
  "_published": "2026-05-29T17:04:07.743Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78548183342,
      "time": 196,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7296446193"
    },
    {
      "job": 78548183364,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7296424724"
    },
    {
      "job": 78548183377,
      "time": 84,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7296408810"
    },
    {
      "job": 78548183365,
      "time": 136,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7296426028"
    },
    {
      "job": 78547654060,
      "time": 191,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7296379454"
    },
    {
      "job": 78548183319,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7296424691"
    },
    {
      "job": 78548183412,
      "time": 91,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7296412407"
    },
    {
      "job": 78548183456,
      "time": 83,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7296408888"
    },
    {
      "job": 78548183415,
      "time": 131,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7296424580"
    }
  ],
  "_buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/api2r/nectar",
  "_commit": {
    "id": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
    "author": "Copilot <198982749+Copilot@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Add `header` and `cookie` params to `req_modify()` and `req_prepare()` (#93)\n\n* Initial plan\n\n* feat: add header and cookie params to req_modify() and req_prepare()\n\nAgent-Logs-Url: https://github.com/api2r/nectar/sessions/5b2e2bee-e1e8-43c9-bba9-9037460b89f2\n\nCo-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>\n\n* fix: correct alphabetical ordering of header/cookie params and trailing blank line\n\nAgent-Logs-Url: https://github.com/api2r/nectar/sessions/5b2e2bee-e1e8-43c9-bba9-9037460b89f2\n\nCo-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>\n\n* fix: add missing newline in aaa-shared_params.R\n\nAgent-Logs-Url: https://github.com/api2r/nectar/sessions/5b2e2bee-e1e8-43c9-bba9-9037460b89f2\n\nCo-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>\n\n* air, wrap, and document\n\n* refactor: remove .req_headers_flatten and pass NULL headers through to httr2\n\nAgent-Logs-Url: https://github.com/api2r/nectar/sessions/fde4ea6e-b7ed-4973-8911-01ec29111460\n\nCo-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>\n\n* Document\n\n* test: add test-req_modify.R with 100% coverage for R/req_modify.R\n\nAgent-Logs-Url: https://github.com/api2r/nectar/sessions/d58f3771-2488-4613-8fe3-6ae28c9adf88\n\nCo-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>\n\n* Clean up `expect_error`\n\n* Tag tests to issues\n\n---------\n\nCo-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>\nCo-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>\nCo-authored-by: Jon Harmon <jonthegeek@gmail.com>",
    "time": 1778615994
  },
  "_maintainer": {
    "name": "Jon Harmon",
    "email": "jonthegeek@gmail.com",
    "login": "jonthegeek",
    "mastodon": "@jonthegeek@fosstodon.org",
    "bluesky": "@jonthegeek.com",
    "linkedin": "in/jonthegeek",
    "description": "Executive Director at DSLC.io (fka @r4ds) | Principal Developer (@atorus-research)",
    "uuid": 33983824,
    "orcid": "0000-0003-4781-4346"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stbl",
      "version": ">= 0.3.0",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "vctrs",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "stringi",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "tibblify",
      "role": "Suggests"
    }
  ],
  "_owner": "api2r",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2025-50",
      "n": 2
    },
    {
      "week": "2025-52",
      "n": 1
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-14",
      "n": 6
    },
    {
      "week": "2026-15",
      "n": 4
    },
    {
      "week": "2026-19",
      "n": 3
    },
    {
      "week": "2026-20",
      "n": 5
    }
  ],
  "_tags": [],
  "_stars": 16,
  "_contributors": [
    {
      "user": "jonthegeek",
      "count": 47,
      "uuid": 33983824
    },
    {
      "user": "copilot",
      "count": 8,
      "uuid": 198982749
    }
  ],
  "_userbio": {
    "uuid": 150703142,
    "type": "organization",
    "name": "api2r"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nectar"
  },
  "_devurl": "https://github.com/api2r/nectar",
  "_pkgdown": "https://nectar.api2r.org",
  "_searchresults": 3,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/nectar.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "auth_api_key",
    "auth_prepare",
    "choose_pagination_fn",
    "compact_nested_list",
    "do_if_fn_defined",
    "iterate_with_json_cursor",
    "req_auth_api_key",
    "req_init",
    "req_modify",
    "req_pagination_policy",
    "req_perform_opinionated",
    "req_pkg_user_agent",
    "req_prepare",
    "req_tidy_policy",
    "resp_body_auto",
    "resp_body_csv",
    "resp_body_separate",
    "resp_body_tsv",
    "resp_parse",
    "resp_tidy",
    "resp_tidy_json",
    "resp_tidy_unknown",
    "tidy_policy_body_auto",
    "tidy_policy_json",
    "tidy_policy_prepare",
    "tidy_policy_unknown",
    "url_normalize",
    "url_path_append"
  ],
  "_help": [
    {
      "page": "auth_api_key",
      "title": "Prepare API key authentication independent of a request",
      "concept": [
        "opinionated auth functions"
      ],
      "topics": [
        "auth_api_key"
      ]
    },
    {
      "page": "auth_prepare",
      "title": "Prepare authentication independent of a request",
      "concept": [
        "opinionated auth functions"
      ],
      "topics": [
        "auth_prepare"
      ]
    },
    {
      "page": "choose_pagination_fn",
      "title": "Extract a pagination policy from a request",
      "topics": [
        "choose_pagination_fn"
      ]
    },
    {
      "page": "compact_nested_list",
      "title": "Discard empty elements",
      "topics": [
        "compact_nested_list"
      ]
    },
    {
      "page": "do_if_fn_defined",
      "title": "Use a provided function",
      "topics": [
        "do_if_fn_defined"
      ]
    },
    {
      "page": "iterate_with_json_cursor",
      "title": "Iteration helper for json cursors",
      "topics": [
        "iterate_with_json_cursor"
      ]
    },
    {
      "page": "req_auth_api_key",
      "title": "Authenticate with an API key",
      "concept": [
        "opinionated auth functions",
        "opinionated request functions"
      ],
      "topics": [
        "req_auth_api_key"
      ]
    },
    {
      "page": "req_init",
      "title": "Setup a basic API request",
      "concept": [
        "opinionated request functions"
      ],
      "topics": [
        "req_init"
      ]
    },
    {
      "page": "req_modify",
      "title": "Modify an API request for a particular endpoint",
      "concept": [
        "opinionated request functions"
      ],
      "topics": [
        "req_modify"
      ]
    },
    {
      "page": "req_pagination_policy",
      "title": "Define a pagination policy for a request",
      "concept": [
        "opinionated request functions"
      ],
      "topics": [
        "req_pagination_policy"
      ]
    },
    {
      "page": "req_perform_opinionated",
      "title": "Perform a request with opinionated defaults",
      "topics": [
        "req_perform_opinionated"
      ]
    },
    {
      "page": "req_pkg_user_agent",
      "title": "Append package information to user agent",
      "topics": [
        "req_pkg_user_agent"
      ]
    },
    {
      "page": "req_prepare",
      "title": "Prepare a request for an API",
      "concept": [
        "opinionated request functions"
      ],
      "topics": [
        "req_prepare"
      ]
    },
    {
      "page": "req_tidy_policy",
      "title": "Define a tidy policy for a request",
      "concept": [
        "opinionated request functions",
        "opinionated response parsers"
      ],
      "topics": [
        "req_tidy_policy"
      ]
    },
    {
      "page": "resp_body_auto",
      "title": "Automatically choose a body parser",
      "topics": [
        "resp_body_auto"
      ]
    },
    {
      "page": "resp_body_csv",
      "title": "Extract tabular data from response body",
      "topics": [
        "resp_body_csv",
        "resp_body_tsv"
      ]
    },
    {
      "page": "resp_body_separate",
      "title": "Extract response body into list",
      "topics": [
        "resp_body_separate"
      ]
    },
    {
      "page": "resp_parse",
      "title": "Parse one or more responses",
      "topics": [
        "resp_parse",
        "resp_parse.default",
        "resp_parse.httr2_response"
      ]
    },
    {
      "page": "resp_tidy",
      "title": "Extract and clean an API response",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "resp_tidy"
      ]
    },
    {
      "page": "resp_tidy_json",
      "title": "Extract and clean a JSON API response",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "resp_tidy_json"
      ]
    },
    {
      "page": "resp_tidy_unknown",
      "title": "Error informatively for unknown response types",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "resp_tidy_unknown"
      ]
    },
    {
      "page": "tidy_policy_body_auto",
      "title": "A policy to automatically parse a response body",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "tidy_policy_body_auto"
      ]
    },
    {
      "page": "tidy_policy_json",
      "title": "A policy to parse a response body as JSON",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "tidy_policy_json"
      ]
    },
    {
      "page": "tidy_policy_prepare",
      "title": "Prepare tidying independent of a request",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "tidy_policy_prepare"
      ]
    },
    {
      "page": "tidy_policy_unknown",
      "title": "A policy to error for unknown response bodies",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "tidy_policy_unknown"
      ]
    },
    {
      "page": "url_normalize",
      "title": "Normalize a URL",
      "topics": [
        "url_normalize"
      ]
    },
    {
      "page": "url_path_append",
      "title": "Add path elements to a URL",
      "topics": [
        "url_path_append"
      ]
    }
  ],
  "_pkglogo": "https://github.com/api2r/nectar/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/api2r/nectar/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "cli",
    "curl",
    "fs",
    "glue",
    "httr2",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "openssl",
    "purrr",
    "R6",
    "rappdirs",
    "rlang",
    "stbl",
    "stringi",
    "stringr",
    "sys",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "nectar.Rmd",
      "filename": "nectar.html",
      "title": "nectar",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Preparing a request with req_prepare()",
        "Authentication with auth_api_key()",
        "Response tidying with resp_tidy_json()",
        "Pagination with iterate_with_json_cursor()",
        "Performing the request with req_perform_opinionated()",
        "Parsing the response with resp_parse()",
        "Putting it all together",
        "Building an API package with nectar"
      ],
      "created": "2026-04-08 16:06:33",
      "modified": "2026-05-11 20:14:57",
      "commits": 4
    }
  ],
  "_score": 5.857332496431269,
  "_indexed": true,
  "_nocasepkg": "nectar",
  "_universes": [
    "api2r",
    "jonthegeek"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9007",
      "date": "2026-05-29T17:03:24.000Z",
      "distro": "noble",
      "commit": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
      "fileid": "8dfc290c2fcfdb9821da3b8bc592fc5d089aa24d1ea70918b52c990753375368",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.0.9007",
      "date": "2026-05-29T17:02:29.000Z",
      "distro": "noble",
      "commit": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
      "fileid": "4e11e2d4b3fcc29ed9e7a6fc4b4fe719b0f9d4d2afbab75b483d8127f7a92a6d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9007",
      "date": "2026-05-29T17:01:48.000Z",
      "commit": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
      "fileid": "3b93205eae2b2f68023827c3daf00b503ec4c0e65d948e99f2c9e04c52d7d618",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.0.9007",
      "date": "2026-05-29T17:02:28.000Z",
      "commit": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
      "fileid": "0971049c86c8c4041f760bbd15da993750dcf150154316ecba524db5cdf1c6c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9007",
      "date": "2026-05-29T17:02:48.000Z",
      "commit": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
      "fileid": "cceeb6c8e443c54e328fda6f6317141a1ec2eba319da037693e03c32bfa717c7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9007",
      "date": "2026-05-29T17:01:45.000Z",
      "commit": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
      "fileid": "734202bdb15c3fcac8bd837691c0083dd5a634baa974a39acba5d63d33806f54",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9007",
      "date": "2026-05-29T17:01:35.000Z",
      "commit": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
      "fileid": "3cca86f3c01d284ace55cd836b59cc13372b8e5e86ee8d7080ad274c89896e8c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.0.9007",
      "date": "2026-05-29T17:02:21.000Z",
      "commit": "9c6c19dd303a71d024d1dd85d3a79ba6cdcfb11d",
      "fileid": "aceaf0f506072db805f0fa8508edd04105534ef727460b820dbf4329f6b469cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/api2r/actions/runs/26650591721"
    }
  ]
}