{
  "_id": "6a47d427e06c18f0a6520437",
  "Package": "BFS",
  "Type": "Package",
  "Title": "Get Data from the Swiss Federal Statistical Office",
  "Version": "0.7.2",
  "Authors@R": "c(person(given = \"Felix\",\nfamily = \"Luginbuhl\",\nrole = c(\"aut\", \"cre\", \"cph\"),\nemail = \"felix.luginbuhl@protonmail.ch\",\ncomment = c(ORCID = \"0009-0008-6625-2899\")),\nperson(given = \"Marius\",\nfamily = \"Hodel\",\nrole = \"ctb\",\ncomment = c(ORCID = \"0000-0001-8789-506X\")),\nperson(given = \"Janosch\",\nfamily = \"Brenzel-Weiss\",\nrole = \"ctb\"),\nperson(given = \"Joao\",\nfamily = \"Martins\",\nrole = \"ctb\"),\nperson(given = \"Philipp\",\nfamily = \"Baumann\",\nrole = \"ctb\",\nemail = \"baumann-philipp@protonmail.com\",\ncomment = c(ORCID = \"0000-0002-3194-8975\")))",
  "Maintainer": "Felix Luginbuhl <felix.luginbuhl@protonmail.ch>",
  "Description": "Search and download data from the Swiss Federal\nStatistical Office (BFS) APIs <https://www.bfs.admin.ch/>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "URL": "https://felixluginbuhl.com/BFS/, https://github.com/lgnbhl/BFS/",
  "BugReports": "https://github.com/lgnbhl/BFS/issues",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libxml2-dev\nlibssl-dev",
  "Repository": "https://lgnbhl.r-universe.dev",
  "Date/Publication": "2026-07-03 14:23:22 UTC",
  "RemoteUrl": "https://github.com/lgnbhl/bfs",
  "RemoteRef": "HEAD",
  "RemoteSha": "ce9c2a3011d278fc2dd10088eed6def25515c609",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-03 15:14:54 UTC",
    "User": "root"
  },
  "Author": "Felix Luginbuhl [aut, cre, cph] (ORCID:\n<https://orcid.org/0009-0008-6625-2899>),\nMarius Hodel [ctb] (ORCID: <https://orcid.org/0000-0001-8789-506X>),\nJanosch Brenzel-Weiss [ctb],\nJoao Martins [ctb],\nPhilipp Baumann [ctb] (ORCID: <https://orcid.org/0000-0002-3194-8975>)",
  "_user": "lgnbhl",
  "_type": "src",
  "_file": "BFS_0.7.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/6c10ee49f21e1ae3d50d0a30adeec92ee6f4a297582e057665736133923f6ecf",
  "_filesize": 1128700,
  "_sha256": "6c10ee49f21e1ae3d50d0a30adeec92ee6f4a297582e057665736133923f6ecf",
  "_expires": "2026-10-11T15:24:21.000Z",
  "_created": "2026-07-03T15:14:54.000Z",
  "_published": "2026-07-03T15:24:23.135Z",
  "_jobs": [
    {
      "job": 85028343059,
      "time": 331,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8070021506"
    },
    {
      "job": 85028343092,
      "time": 329,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8070020885"
    },
    {
      "job": 85028343035,
      "time": 222,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8070047443"
    },
    {
      "job": 85028343024,
      "time": 244,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8070084117"
    },
    {
      "job": 85027900545,
      "time": 160,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8069911714"
    },
    {
      "job": 85028343079,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8069956429"
    },
    {
      "job": 85028343052,
      "time": 419,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8070048805"
    },
    {
      "job": 85028343020,
      "time": 377,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8070036529"
    },
    {
      "job": 85028343049,
      "time": 336,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8070022892"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778",
  "_status": "success",
  "_upstream": "https://github.com/lgnbhl/bfs",
  "_commit": {
    "id": "ce9c2a3011d278fc2dd10088eed6def25515c609",
    "author": "lgnbhl <felix.luginbuhl@protonmail.ch>",
    "committer": "lgnbhl <felix.luginbuhl@protonmail.ch>",
    "message": "fix: wrap the network-dependent examples of `bfs_get_sse_data()` and\n  `bfs_get_sse_metadata()` in `\\donttest{}` to avoid CRAN/CI check failures\n  when the Swiss Stats Explorer API is unreachable or times out.\n",
    "time": 1783088602
  },
  "_maintainer": {
    "name": "Felix Luginbuhl",
    "email": "felix.luginbuhl@protonmail.ch",
    "login": "lgnbhl",
    "description": "Full-stack R developer",
    "uuid": 29467632
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4",
      "role": "Depends"
    },
    {
      "package": "pxweb",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "role": "Imports"
    },
    {
      "package": "xml2",
      "role": "Imports"
    },
    {
      "package": "rvest",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "janitor",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "zip",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "tools",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "rstac",
      "role": "Suggests"
    },
    {
      "package": "sf",
      "role": "Suggests"
    }
  ],
  "_owner": "lgnbhl",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2025-43",
      "n": 2
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-45",
      "n": 4
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-06",
      "n": 2
    },
    {
      "week": "2026-27",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "switzerland"
  ],
  "_stars": 24,
  "_contributors": [
    {
      "user": "lgnbhl",
      "count": 368,
      "uuid": 29467632
    },
    {
      "user": "madelhorius",
      "count": 9,
      "uuid": 45639496
    },
    {
      "user": "gf-fluginbuhl",
      "count": 5,
      "uuid": 67467403
    },
    {
      "user": "felixanalytix",
      "count": 4,
      "uuid": 93553983
    },
    {
      "user": "j-martins",
      "count": 4,
      "uuid": 5850800
    },
    {
      "user": "raphbub-vs",
      "count": 1,
      "uuid": 146056116
    },
    {
      "user": "sschmutz",
      "count": 1,
      "uuid": 25775000
    }
  ],
  "_userbio": {
    "uuid": 29467632,
    "type": "user",
    "name": "Félix Luginbuhl",
    "followers": 74,
    "description": "Full-stack R developer"
  },
  "_downloads": {
    "count": 751,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BFS"
  },
  "_mentions": 6,
  "_devurl": "https://github.com/lgnbhl/bfs",
  "_searchresults": 42,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/BFS.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/lgnbhl/bfs",
  "_realowner": "lgnbhl",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.1",
      "date": "2019-10-16"
    },
    {
      "version": "0.2.2",
      "date": "2019-10-21"
    },
    {
      "version": "0.2.4",
      "date": "2020-03-16"
    },
    {
      "version": "0.2.5",
      "date": "2020-03-25"
    },
    {
      "version": "0.3.0",
      "date": "2021-03-23"
    },
    {
      "version": "0.3.1",
      "date": "2021-05-10"
    },
    {
      "version": "0.4.0",
      "date": "2021-10-06"
    },
    {
      "version": "0.4.1",
      "date": "2021-10-09"
    },
    {
      "version": "0.4.3",
      "date": "2022-09-07"
    },
    {
      "version": "0.4.4",
      "date": "2022-12-14"
    },
    {
      "version": "0.4.5",
      "date": "2023-02-27"
    },
    {
      "version": "0.4.6",
      "date": "2023-03-30"
    },
    {
      "version": "0.4.7",
      "date": "2023-05-19"
    },
    {
      "version": "0.4.8",
      "date": "2023-05-31"
    },
    {
      "version": "0.5",
      "date": "2023-06-08"
    },
    {
      "version": "0.5.1",
      "date": "2023-06-09"
    },
    {
      "version": "0.5.2",
      "date": "2023-08-11"
    },
    {
      "version": "0.5.3",
      "date": "2023-08-19"
    },
    {
      "version": "0.5.4",
      "date": "2023-09-13"
    },
    {
      "version": "0.5.5",
      "date": "2023-09-20"
    },
    {
      "version": "0.5.6",
      "date": "2024-01-08"
    },
    {
      "version": "0.5.7",
      "date": "2024-02-02"
    },
    {
      "version": "0.5.8",
      "date": "2024-02-24"
    },
    {
      "version": "0.5.9",
      "date": "2024-09-26"
    },
    {
      "version": "0.5.10",
      "date": "2024-09-27"
    },
    {
      "version": "0.5.11",
      "date": "2024-11-27"
    },
    {
      "version": "0.5.12",
      "date": "2024-12-09"
    },
    {
      "version": "0.5.13",
      "date": "2025-04-29"
    },
    {
      "version": "0.6.0",
      "date": "2025-06-09"
    },
    {
      "version": "0.7.0",
      "date": "2025-11-03"
    },
    {
      "version": "0.7.1",
      "date": "2026-02-05"
    }
  ],
  "_exports": [
    "%>%",
    "bfs_download_asset",
    "bfs_download_geodata",
    "bfs_get_asset_metadata",
    "bfs_get_base_maps",
    "bfs_get_catalog",
    "bfs_get_catalog_data",
    "bfs_get_catalog_geodata",
    "bfs_get_catalog_tables",
    "bfs_get_data",
    "bfs_get_data_comments",
    "bfs_get_metadata",
    "bfs_get_sse_data",
    "bfs_get_sse_metadata"
  ],
  "_datasets": [
    {
      "name": "register_bzn",
      "title": "Swiss official commune register BZN",
      "object": "register_bzn",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "GDEKT",
        "GDEBZNR",
        "GDEBZNA"
      ],
      "rows": 143,
      "table": true,
      "tojson": true
    },
    {
      "name": "register_dic",
      "title": "Swiss official commune register Dictionary",
      "object": "register_dic",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "language",
        "abbreviation",
        "title",
        "spec",
        "notes"
      ],
      "rows": 27,
      "table": true,
      "tojson": true
    },
    {
      "name": "register_gde",
      "title": "Swiss official commune register GDE",
      "object": "register_gde",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "GDEKT",
        "GDEBZNR",
        "GDENR",
        "GDENAME",
        "GDENAMK",
        "GDEBZNA",
        "GDEKTNA",
        "GDEMUTDAT"
      ],
      "rows": 2136,
      "table": true,
      "tojson": true
    },
    {
      "name": "register_gde_other",
      "title": "Swiss official commune register GDE Other",
      "object": "register_gde_other",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "GDENR",
        "GDENAME",
        "KTNR",
        "GDEBZNR"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "register_kt",
      "title": "Swiss official commune register KT",
      "object": "register_kt",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "KTNR",
        "GDEKT",
        "GDEKTNA"
      ],
      "rows": 26,
      "table": true,
      "tojson": true
    },
    {
      "name": "register_kt_seeanteile",
      "title": "Swiss official commune register KT Seeanteile",
      "object": "register_kt_seeanteile",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "GDENR",
        "GDENAME",
        "KTNR"
      ],
      "rows": 41,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bfs_download_asset",
      "title": "Download a BFS asset file",
      "topics": [
        "bfs_download_asset"
      ]
    },
    {
      "page": "bfs_download_geodata",
      "title": "Download a geographic file from the Swiss geo-portal",
      "topics": [
        "bfs_download_geodata"
      ]
    },
    {
      "page": "bfs_get_asset_metadata",
      "title": "Get asset metadata in a given language",
      "topics": [
        "bfs_get_asset_metadata"
      ]
    },
    {
      "page": "bfs_get_base_maps",
      "title": "Get Switzerland base maps data",
      "topics": [
        "bfs_get_base_maps"
      ]
    },
    {
      "page": "bfs_get_catalog",
      "title": "Get the BFS data or table catalog",
      "topics": [
        "bfs_get_catalog"
      ]
    },
    {
      "page": "bfs_get_catalog_data",
      "title": "Get the BFS data catalog",
      "topics": [
        "bfs_get_catalog_data"
      ]
    },
    {
      "page": "bfs_get_catalog_geodata",
      "title": "Get the geodata catalog of the Swiss Confederation",
      "topics": [
        "bfs_get_catalog_geodata"
      ]
    },
    {
      "page": "bfs_get_catalog_tables",
      "title": "Get the BFS tables catalog",
      "topics": [
        "bfs_get_catalog_tables"
      ]
    },
    {
      "page": "bfs_get_data",
      "title": "Get BFS data in a given language",
      "topics": [
        "bfs_get_data"
      ]
    },
    {
      "page": "bfs_get_data_comments",
      "title": "Get the comments/footnotes of a BFS dataset in a given language",
      "topics": [
        "bfs_get_data_comments"
      ]
    },
    {
      "page": "bfs_get_metadata",
      "title": "Get metadata of a BFS data in a given language",
      "topics": [
        "bfs_get_metadata"
      ]
    },
    {
      "page": "bfs_get_sse_data",
      "title": "Get Data from Swiss Stats Explorer (SSE) API",
      "topics": [
        "bfs_get_sse_data"
      ]
    },
    {
      "page": "bfs_get_sse_metadata",
      "title": "Get Metadata (Codelists) from Swiss Stats Explorer (SSE) API",
      "topics": [
        "bfs_get_sse_metadata"
      ]
    },
    {
      "page": "bfs_get_sse_url",
      "title": "Get the URL for the Swiss Stats Explorer (SSE) API based on the BFS number",
      "topics": [
        "bfs_get_sse_url"
      ]
    },
    {
      "page": "get_xml_name",
      "title": "Get the name from an XML node for a specified language, with fallback",
      "topics": [
        "get_xml_name"
      ]
    },
    {
      "page": "register_bzn",
      "title": "Swiss official commune register BZN",
      "topics": [
        "register_bzn"
      ]
    },
    {
      "page": "register_dic",
      "title": "Swiss official commune register Dictionary",
      "topics": [
        "register_dic"
      ]
    },
    {
      "page": "register_gde",
      "title": "Swiss official commune register GDE",
      "topics": [
        "register_gde"
      ]
    },
    {
      "page": "register_gde_other",
      "title": "Swiss official commune register GDE Other",
      "topics": [
        "register_gde_other"
      ]
    },
    {
      "page": "register_kt",
      "title": "Swiss official commune register KT",
      "topics": [
        "register_kt"
      ]
    },
    {
      "page": "register_kt_seeanteile",
      "title": "Swiss official commune register KT Seeanteile",
      "topics": [
        "register_kt_seeanteile"
      ]
    }
  ],
  "_pkglogo": "https://github.com/lgnbhl/bfs/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/lgnbhl/bfs/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "backports",
    "checkmate",
    "cli",
    "cpp11",
    "curl",
    "dplyr",
    "fs",
    "generics",
    "glue",
    "hms",
    "httr",
    "httr2",
    "janitor",
    "jsonlite",
    "lifecycle",
    "lubridate",
    "magrittr",
    "mime",
    "openssl",
    "pillar",
    "pkgconfig",
    "purrr",
    "pxweb",
    "R6",
    "rappdirs",
    "rlang",
    "rvest",
    "selectr",
    "snakecase",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "withr",
    "xml2",
    "zip"
  ],
  "_score": 7.10383107722707,
  "_indexed": true,
  "_nocasepkg": "bfs",
  "_universes": [
    "lgnbhl"
  ],
  "_previous": "0.7.1",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.2",
      "date": "2026-07-03T15:17:06.000Z",
      "distro": "resolute",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/821c96e8cce92d3fa912156f48cdbd6d134d43a6e4782208fc58d28a5bc77380",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.7.2",
      "date": "2026-07-03T15:17:05.000Z",
      "distro": "resolute",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/e711c499935e39917aa9affef44320ae837afd2d6da35540643103aceb71b1df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.2",
      "date": "2026-07-03T15:19:29.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/7cb7e3f8dd5f615c9381de56cb7daa29205f2da3cd5e91b43091054c16674410",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.7.2",
      "date": "2026-07-03T15:21:31.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/0f8d17d7557edc76a2fd7896f11a7696799abfc3f9b1e80ed11512dd695b67ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.7.2",
      "date": "2026-07-03T15:17:19.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/8f1690efc47743dfec9ffa3105d086d3f5a6bc2eefbe88268719068a8db247e3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.2",
      "date": "2026-07-03T15:16:12.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/26c35b234c0466a5d25657c0b990beb3e822894a87a04fb383ded9981e9f3db2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.7.2",
      "date": "2026-07-03T15:16:20.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/6836b0a41860e8eb52e9ba1fbf6fd0bf6e1ba175d51e3c34a89730797b0dae97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.7.2",
      "date": "2026-07-03T15:16:15.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/4be2ab625f4b91e08cb4b45835f23135a07da20ce0155747711badbf64543079",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/28669067778"
    }
  ]
}