{
  "_id": "6ac0069991601a2ad2995e9f",
  "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://jonthegeek.r-universe.dev",
  "Date/Publication": "2026-06-07 16:39:09 UTC",
  "RemoteUrl": "https://github.com/jonthegeek/nectar",
  "RemoteRef": "HEAD",
  "RemoteSha": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-02 19:16:17 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>",
  "_user": "jonthegeek",
  "_type": "src",
  "_file": "nectar_0.0.0.9007.tar.gz",
  "_fileid": "https://r2.ropensci.org/fe78b5a2a0db13e9bac435f953f4a51000a6bb3dedb1fa4e0294188f7e466e27",
  "_filesize": 536798,
  "_sha256": "fe78b5a2a0db13e9bac435f953f4a51000a6bb3dedb1fa4e0294188f7e466e27",
  "_expires": "2027-01-10T19:31:35.000Z",
  "_created": "2026-10-02T19:16:17.000Z",
  "_published": "2026-10-02T19:31:37.500Z",
  "_jobs": [
    {
      "job": 110990907894,
      "time": 141,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "11247193073"
    },
    {
      "job": 110990907795,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11247278004"
    },
    {
      "job": 110990907514,
      "time": 118,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "11247334962"
    },
    {
      "job": 110990907623,
      "time": 83,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11248500386"
    },
    {
      "job": 110989305725,
      "time": 256,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11246639338"
    },
    {
      "job": 110990907719,
      "time": 93,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11247377733"
    },
    {
      "job": 110990907798,
      "time": 82,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "11247600097"
    },
    {
      "job": 110990907960,
      "time": 72,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "11247600070"
    },
    {
      "job": 110990907875,
      "time": 61,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11246529343"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882",
  "_status": "success",
  "_upstream": "https://github.com/jonthegeek/nectar",
  "_commit": {
    "id": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
    "author": "Copilot <198982749+Copilot@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Split JSON tidying into core parser and tibblify wrapper (#96)\n\n* Initial plan\n\n* Split JSON tidiers into core and tibblify variants\n\nCo-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>\n\n* Address PR feedback for JSON tidier split\n\nCo-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>\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>",
    "time": 1780850349
  },
  "_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"
  },
  "_distro": "resolute",
  "_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": "jonthegeek",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "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
    },
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 16,
  "_contributors": [
    {
      "user": "jonthegeek",
      "count": 47,
      "uuid": 33983824
    },
    {
      "user": "copilot",
      "count": 9,
      "uuid": 198982749
    }
  ],
  "_userbio": {
    "uuid": 33983824,
    "type": "user",
    "name": "Jon Harmon",
    "followers": 366,
    "description": "Executive Director at DSLC.io (fka @r4ds) | Principal Developer (@atorus-research)"
  },
  "_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": 4,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/nectar.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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_json_tibblify",
    "resp_tidy_unknown",
    "tidy_policy_body_auto",
    "tidy_policy_json",
    "tidy_policy_json_tibblify",
    "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 optionally subset a JSON API response",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "resp_tidy_json"
      ]
    },
    {
      "page": "resp_tidy_json_tibblify",
      "title": "Extract and clean a JSON API response with tibblify",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "resp_tidy_json_tibblify"
      ]
    },
    {
      "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_json_tibblify",
      "title": "A policy to parse a response body as JSON",
      "concept": [
        "opinionated response parsers"
      ],
      "topics": [
        "tidy_policy_json_tibblify"
      ]
    },
    {
      "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/jonthegeek/nectar/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/jonthegeek/nectar/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "cli",
    "curl",
    "fs",
    "glue",
    "httr2",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "openssl",
    "purrr",
    "R6",
    "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_tibblify()",
        "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-06-07 16:39:09",
      "commits": 5
    }
  ],
  "_score": 5.681241237375588,
  "_indexed": true,
  "_nocasepkg": "nectar",
  "_universes": [
    "jonthegeek",
    "api2r"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9007",
      "date": "2026-10-02T19:18:39.000Z",
      "distro": "resolute",
      "commit": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
      "fileid": "https://r2.ropensci.org/55357e1d2da2e96549f2f29e635f68e840d94b63bcf92dbad2a8936e96d7be2d",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.9007",
      "date": "2026-10-02T19:18:25.000Z",
      "distro": "resolute",
      "commit": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
      "fileid": "https://r2.ropensci.org/e1e905ff5b19bca0c39ab38940d149ed04ade61576c822aa638b19074e5a6f4d",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9007",
      "date": "2026-10-02T19:30:09.000Z",
      "commit": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
      "fileid": "https://r2.ropensci.org/03a02c5ed741e1d8ebf962471cab743c8acc1014335d23997f425f59b0034aa4",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.9007",
      "date": "2026-10-02T19:30:55.000Z",
      "commit": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
      "fileid": "https://r2.ropensci.org/8018d7c3cfa7537df6f0d579bc5bdb682572a4394be2c624b1ae62c94cf3a578",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9007",
      "date": "2026-10-02T19:18:13.000Z",
      "commit": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
      "fileid": "https://r2.ropensci.org/71e18bee1ad084bbe9ccddb7c83413d2563ff58226257e2511e6103e76a503b3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9007",
      "date": "2026-10-02T19:17:32.000Z",
      "commit": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
      "fileid": "https://r2.ropensci.org/a75b4f1b3d37cf47c11fb87ed27bdd236c0970c601f24a47c4ec67de1a60bc4a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9007",
      "date": "2026-10-02T19:17:24.000Z",
      "commit": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
      "fileid": "https://r2.ropensci.org/92492cc2486fe6537619275c450ea3c0d9cdf05c2ca8905b8ae4770ef1a0eabc",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.0.9007",
      "date": "2026-10-02T19:17:23.000Z",
      "commit": "d27c4cbd03f3b8c72e0beb577bfd49aca2881524",
      "fileid": "https://r2.ropensci.org/32d6da6e5d8b68a3a0af132565fe79b2f9157c2df8936a55fa66af4bddfb6e9b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/jonthegeek/actions/runs/37052516882"
    }
  ]
}