{
  "_id": "6ab37cdc3d719c1f8408ff61",
  "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-09-23 06:50:23 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/11710cb9fd55d1fb7b954bc3c35838f1be8485bb41eb0edcbf3887a7147f733f",
  "_filesize": 1127871,
  "_sha256": "11710cb9fd55d1fb7b954bc3c35838f1be8485bb41eb0edcbf3887a7147f733f",
  "_expires": "2027-01-01T07:16:41.000Z",
  "_created": "2026-09-23T06:50:23.000Z",
  "_published": "2026-09-23T07:16:43.877Z",
  "_jobs": [
    {
      "job": 107075997801,
      "time": 388,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10736527988"
    },
    {
      "job": 107075997794,
      "time": 389,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10736737795"
    },
    {
      "job": 107075997702,
      "time": 279,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10736543760"
    },
    {
      "job": 107075997773,
      "time": 368,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10736874250"
    },
    {
      "job": 107074683461,
      "time": 314,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10736226582"
    },
    {
      "job": 107075997748,
      "time": 128,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10736127327"
    },
    {
      "job": 107075997726,
      "time": 330,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10736920809"
    },
    {
      "job": 107075997836,
      "time": 324,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10736955395"
    },
    {
      "job": 107075997705,
      "time": 402,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10736127858"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765",
  "_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,
    "orcid": "0009-0008-6625-2899"
  },
  "_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-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": 26,
  "_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": 649,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BFS"
  },
  "_mentions": 6,
  "_devurl": "https://github.com/lgnbhl/bfs",
  "_pkgdown": "https://felixluginbuhl.com/BFS/",
  "_searchresults": 69,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/BFS.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/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"
    },
    {
      "version": "0.7.2",
      "date": "2026-07-03"
    }
  ],
  "_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",
    "rlang",
    "rvest",
    "selectr",
    "snakecase",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "withr",
    "xml2",
    "zip"
  ],
  "_score": 7.287246194195023,
  "_indexed": true,
  "_nocasepkg": "bfs",
  "_universes": [
    "lgnbhl"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.2",
      "date": "2026-09-23T06:53:32.000Z",
      "distro": "resolute",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/e4e52dc9fbb356d3f310b48dda596bbf45c53c6fae76bf1c3c632bf07e23a345",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.7.2",
      "date": "2026-09-23T06:52:46.000Z",
      "distro": "resolute",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/eb8ac2fd36c08071516cdec307f8eb5a0cc8231385e8134aa9cab4832846cc75",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.2",
      "date": "2026-09-23T06:59:05.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/4a58dab837ae32fc04cb5b0f024f3e1c0fe1463d2ea1ff19c48532c527a13bab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.7.2",
      "date": "2026-09-23T07:11:31.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/bd676d756e78cc210e9eeb070428c22e4e4390a4f3a928b8e3334be1ccd35e20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.7.2",
      "date": "2026-09-23T06:52:45.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/cd5617cfa02456fd68ef35cffbcbef0cd929864eb7e61534b1af859cb20894e0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.2",
      "date": "2026-09-23T06:51:33.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/0f8c4e45ca95799c767643d1c8a3a3cda0de34994fa4168c1a2a84a9b05af821",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.7.2",
      "date": "2026-09-23T06:51:32.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/34526e6962c382b73fc8b9b2bec469402397c006c9a56ffef2ea69c500557213",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.7.2",
      "date": "2026-09-23T06:51:44.000Z",
      "commit": "ce9c2a3011d278fc2dd10088eed6def25515c609",
      "fileid": "https://r2.ropensci.org/a9473f3582dc4bf469b9a3f85e63ac5c20b68e54c859c2ced1aea1e5209abacf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lgnbhl/actions/runs/35828214765"
    }
  ]
}