## ----include = FALSE----------------------------------------------------------
# The examples call the BFS APIs: they run on the pkgdown site only, not on
# CRAN, where the APIs can be unavailable or rate-limit the check machines.
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  message = FALSE,
  warning = FALSE,
  eval = identical(Sys.getenv("IN_PKGDOWN"), "true")
)

## -----------------------------------------------------------------------------
# library(BFS)

## -----------------------------------------------------------------------------
# dimensions <- bfs_sse_dimensions("DF_LWZ_1", language = "en")
# dimensions

## -----------------------------------------------------------------------------
# bfs_sse_data(
#   "DF_LWZ_1",
#   filters = list(
#     GR_KT_GDE = c("GE", "ZH", "BE"), # the cantons of Geneva, Zurich and Bern
#     WOHN_ANZAHL = "_T",              # all numbers of rooms
#     LEERWOHN_TYP = "_T",             # all types of vacant dwellings
#     MEASURE_DIMENSION = "RATE"       # the vacancy rate, in %
#   ),
#   start_period = "2020",
#   language = "en"
# )

## -----------------------------------------------------------------------------
# bfs_get_catalog_data(language = "en", extended_search = "university students")
# 
# bfs_get_data(number_bfs = "px-x-1502040100_131", language = "en")

