{
  "_id": "6af5a993535793c853329ecb",
  "Package": "sgapi",
  "Title": "Aid Querying 'nomis' and 'Office for National Statistics Open\nGeography' APIs",
  "Version": "1.1.2",
  "Authors@R": "c(\nperson(\"Michael\", \"Stocks\", email = \"sgapi.orhub@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Andrew\", \"Christy\", role = \"aut\"),\nperson(\"James\",\"Macpherson\", role = \"aut\"),\nperson(\"Hadyn\",\"Jenkins\", role = \"aut\" ),\nperson(\"Crown Copyright (Department for Environment Food and Rural Affairs)\", role =\"cph\"))",
  "Description": "Facilitates extraction of geospatial data from the 'Office\nfor National Statistics Open Geography' and 'nomis' Application\nProgramming Interfaces (APIs). Simplifies process of querying\n'nomis' datasets <https://www.nomisweb.co.uk/> and extracting\ndesired datasets in dataframe format. Extracts area shapefiles\nat chosen resolution from 'Office for National Statistics Open\nGeography' <https://geoportal.statistics.gov.uk/>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "URL": "https://defra-data-science-centre-of-excellence.github.io/sgapi/,\nhttps://github.com/Defra-Data-Science-Centre-of-Excellence/sgapi",
  "BugReports": "https://github.com/Defra-Data-Science-Centre-of-Excellence/sgApi/issues",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-12 11:39:22 UTC",
    "User": "root"
  },
  "Author": "Michael Stocks [aut, cre], Andrew Christy [aut], James\nMacpherson [aut], Hadyn Jenkins [aut], Crown Copyright\n(Department for Environment Food and Rural Affairs) [cph]",
  "Maintainer": "Michael Stocks <sgapi.orhub@gmail.com>",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibxml2-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev libx11-dev",
  "Repository": "https://cranhaven.r-universe.dev",
  "Date/Publication": "2026-11-12 02:02:00 UTC",
  "RemoteUrl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "RemoteRef": "package/sgapi",
  "RemoteSha": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
  "RemoteSubdir": "sgapi",
  "_user": "cranhaven",
  "_type": "src",
  "_file": "sgapi_1.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/b4716f776fb5621fba79c71c50aed9aa1e0064f5d4962577fca6042a8668c465",
  "_filesize": 211969,
  "_sha256": "b4716f776fb5621fba79c71c50aed9aa1e0064f5d4962577fca6042a8668c465",
  "_expires": "2027-02-20T11:57:05.000Z",
  "_created": "2026-11-12T11:39:22.000Z",
  "_published": "2026-11-12T11:57:07.353Z",
  "_upstream": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_status": "success",
  "_maintainer": {
    "name": "Michael Stocks",
    "email": "sgapi.orhub@gmail.com"
  },
  "_jobs": [
    {
      "job": 131158483697,
      "time": 226,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "13940994931"
    },
    {
      "job": 131158483670,
      "time": 183,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "13941496811"
    },
    {
      "job": 131158483610,
      "time": 152,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13942127637"
    },
    {
      "job": 131158483637,
      "time": 184,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13942975106"
    },
    {
      "job": 131156866559,
      "time": 199,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13941471341"
    },
    {
      "job": 131158483667,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13941546439"
    },
    {
      "job": 131158483685,
      "time": 299,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "13941721211"
    },
    {
      "job": 131158483672,
      "time": 291,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "13941487196"
    },
    {
      "job": 131158483786,
      "time": 308,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "13942160682"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438",
  "_commit": {
    "id": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
    "author": "GitHub Action <action@github.com>",
    "committer": "GitHub Action <action@github.com>",
    "message": "Add sgapi to CRANhaven, because archived on 2026-11-12 02:02:00 +0000\n",
    "time": 1794448920
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6",
      "role": "Depends"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "httr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "xml2",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cranhaven",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-46",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "archived",
    "packages",
    "r-universe"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "henrikbengtsson",
      "count": 183,
      "uuid": 1616850
    }
  ],
  "_userbio": {
    "uuid": 161993010,
    "type": "organization",
    "name": "cranhaven",
    "followers": 3,
    "description": "CRANhaven - Repository for Recently Archived CRAN Packages"
  },
  "_downloads": {
    "count": 320,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sgapi"
  },
  "_devurl": "https://github.com/defra-data-science-centre-of-excellence/sgapi",
  "_searchresults": 2,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sgapi.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/defra-data-science-centre-of-excellence/sgapi",
  "_realowner": "defra-data-science-centre-of-excellence",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-03-18"
    },
    {
      "version": "1.0.1",
      "date": "2024-03-20"
    },
    {
      "version": "1.0.2",
      "date": "2024-03-28"
    },
    {
      "version": "1.0.3",
      "date": "2025-01-17"
    },
    {
      "version": "1.1.0",
      "date": "2025-05-08"
    },
    {
      "version": "1.1.1",
      "date": "2025-11-18"
    },
    {
      "version": "1.1.2",
      "date": "2025-12-01"
    }
  ],
  "_exports": [
    "assert_function",
    "build_constituency_query_string",
    "build_url_query_string",
    "get_available_scales",
    "get_boundaries",
    "get_boundaries_areaname",
    "get_keyword_table_id",
    "get_ons_table",
    "get_overview",
    "get_structure",
    "get_table",
    "get_table_dimensions",
    "get_table_id",
    "get_table_info_brief",
    "get_table_link_lookup",
    "list_data_sources",
    "list_tables"
  ],
  "_datasets": [
    {
      "name": "availableBoundaries",
      "title": "List of available ONS boundaries",
      "object": "availableBoundaries",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "lookup",
      "title": "Lookup to match Office for National Statistics (ONS) and 'nomis' boundary names",
      "object": "lookup",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "ons",
        "nomis",
        "resolution",
        "Names_and_Code"
      ],
      "rows": 30,
      "table": true,
      "tojson": true
    },
    {
      "name": "nomisTables",
      "title": "#' List of tables on 'nomis'",
      "object": "nomisTables",
      "class": [
        "data.frame"
      ],
      "fields": [
        "name",
        "id",
        "sourceName"
      ],
      "rows": 1610,
      "table": true,
      "tojson": true
    },
    {
      "name": "scalesForEachDataset",
      "title": "#' List of tables available at each ONS resolution",
      "object": "scalesForEachDataset",
      "class": [
        "data.frame"
      ],
      "fields": [
        "name",
        "value",
        "table"
      ],
      "rows": 22775,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "assert_function",
      "title": "Escape Function in Case of Errors",
      "topics": [
        "assert_function"
      ]
    },
    {
      "page": "availableBoundaries.rda",
      "title": "List of available ONS boundaries",
      "topics": [
        "availableBoundaries",
        "availableBoundaries.rda"
      ]
    },
    {
      "page": "build_constituency_query_string",
      "title": "Build constituency section of get_boundary_areaname query string",
      "topics": [
        "build_constituency_query_string"
      ]
    },
    {
      "page": "build_url_query_string",
      "title": "Build URL Query String",
      "topics": [
        "build_url_query_string"
      ]
    },
    {
      "page": "get_available_scales",
      "title": "Available Boundary Scales for 'nomis' Table",
      "topics": [
        "get_available_scales"
      ]
    },
    {
      "page": "get_boundaries",
      "title": "Get Boundaries Using Geospatial Filter",
      "topics": [
        "get_boundaries"
      ]
    },
    {
      "page": "get_boundaries_areaname",
      "title": "Get Boundaries Using Area Names",
      "topics": [
        "get_boundaries_areaname"
      ]
    },
    {
      "page": "get_keyword_table_id",
      "title": "Keyword Search of 'nomis'",
      "topics": [
        "get_keyword_table_id"
      ]
    },
    {
      "page": "get_ons_table",
      "title": "Get ONS data",
      "topics": [
        "get_ons_table"
      ]
    },
    {
      "page": "get_overview",
      "title": "Table Overview",
      "topics": [
        "get_overview"
      ]
    },
    {
      "page": "get_structure",
      "title": "Extract 'nomis' Table Data for Chosen Dimension",
      "topics": [
        "get_structure"
      ]
    },
    {
      "page": "get_table",
      "title": "Get 'nomis' Table",
      "topics": [
        "get_table"
      ]
    },
    {
      "page": "get_table_dimensions",
      "title": "Table Dimensions",
      "topics": [
        "get_table_dimensions"
      ]
    },
    {
      "page": "get_table_id",
      "title": "Get 'nomis 'Table IDs",
      "topics": [
        "get_table_id"
      ]
    },
    {
      "page": "get_table_info_brief",
      "title": "Key 'nomis' Table Information",
      "topics": [
        "get_table_info_brief"
      ]
    },
    {
      "page": "get_table_link_lookup",
      "title": "Lookup Between Boundary Scales",
      "topics": [
        "get_table_link_lookup"
      ]
    },
    {
      "page": "list_data_sources",
      "title": "List 'nomis' Data Sources",
      "topics": [
        "list_data_sources"
      ]
    },
    {
      "page": "list_tables",
      "title": "Available 'nomis' Tables",
      "topics": [
        "list_tables"
      ]
    },
    {
      "page": "lookup.rda",
      "title": "Lookup to match Office for National Statistics (ONS) and 'nomis' boundary names",
      "topics": [
        "lookup",
        "lookup.rda"
      ]
    },
    {
      "page": "nomisTables.rda",
      "title": "#' List of tables on 'nomis'",
      "topics": [
        "nomisTables",
        "nomisTables.rda"
      ]
    },
    {
      "page": "scalesForEachDataset.rda",
      "title": "#' List of tables available at each ONS resolution",
      "topics": [
        "scalesForEachDataset",
        "scalesForEachDataset.rda"
      ]
    }
  ],
  "_readme": "https://github.com/cranhaven/cranhaven.r-universe.dev/raw/package/sgapi/sgapi/README.md",
  "_rundeps": [
    "askpass",
    "bit",
    "bit64",
    "class",
    "classInt",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "DBI",
    "dplyr",
    "e1071",
    "generics",
    "glue",
    "hms",
    "httr",
    "jsonlite",
    "KernSmooth",
    "lifecycle",
    "magrittr",
    "mime",
    "openssl",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "proxy",
    "R6",
    "Rcpp",
    "readr",
    "rlang",
    "s2",
    "sf",
    "sys",
    "tibble",
    "tidyselect",
    "tzdb",
    "units",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "wk",
    "xml2"
  ],
  "_score": 2.3979400086720375,
  "_indexed": false,
  "_nocasepkg": "sgapi",
  "_universes": [
    "cranhaven"
  ],
  "_indexurl": "https://defra-data-science-centre-of-excellence.r-universe.dev/sgapi",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-11-12T11:41:38.000Z",
      "distro": "resolute",
      "commit": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
      "fileid": "https://r2.ropensci.org/1fa1ae7b27941ef861e59f060d97e29e7890829ab4f35d039a349117491c9dac",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-11-12T11:41:26.000Z",
      "distro": "resolute",
      "commit": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
      "fileid": "https://r2.ropensci.org/d46fc8fc3c54a59cdb2fad68f507f3b2f45c33ae34550afa2557cfde3695ae62",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-11-12T11:55:27.000Z",
      "commit": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
      "fileid": "https://r2.ropensci.org/8a90eb3973e244fe1a041a0d9b98ad11d5f8fed67124487a9a91593979bbfce3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-11-12T11:50:47.000Z",
      "commit": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
      "fileid": "https://r2.ropensci.org/ca059ab3728c2a1cc340ad3360cf771d4ca05e61f4df7719e7e79f86b86b55b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.2",
      "date": "2026-11-12T11:41:25.000Z",
      "commit": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
      "fileid": "https://r2.ropensci.org/82b24ecf0a2eb05e33f93ed515cd4ef7e6b537ba1b0566f1a900f6f591d72dd2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-11-12T11:42:06.000Z",
      "commit": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
      "fileid": "https://r2.ropensci.org/8256df8a1bd573180796b038c74b18017410218b5eba6ee00094a1b1d4402e83",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-11-12T11:41:52.000Z",
      "commit": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
      "fileid": "https://r2.ropensci.org/a65cd8531d73ee7aff3bd22d8207e0a2adcd6ed1d1723e7a850015fb720630c2",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-11-12T11:42:23.000Z",
      "commit": "f4bbba49bbc553cf97f2e0e99f4fcbdaae3f2f93",
      "fileid": "https://r2.ropensci.org/7b9bbcdddf8a959cd488b76fae575cde8c27c5f66a13c38b27dd264229f42ee5",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/43210554438"
    }
  ]
}