Use this function to check if you have the BBS data downloaded and where
bbsBayes2 is expecting to find it. If it returns FALSE
, the data is not
present; use fetch_bbs_data()
to retrieve it.
Arguments
- level
Character. BBS data to check, one of "all", "state", or "stop". Default "state".
- release
Character/Numeric. BBS data to check, one of "all", 2020, 2022, or 2023. Default 2023.
- quiet
Logical. Suppress progress messages? Default
FALSE
.
See also
Other BBS data functions:
fetch_bbs_data()
,
load_bbs_data()
,
remove_cache()
Examples
have_bbs_data()
#> Expected BBS state data 2023: '/home/runner/.local/share/R/bbsBayes2/bbs_state_data_2023.rds'
#> [1] TRUE
have_bbs_data(release = 2020)
#> Expected BBS state data 2020: '/home/runner/.local/share/R/bbsBayes2/bbs_state_data_2020.rds'
#> [1] FALSE
have_bbs_data(release = "all", level = "all")
#> Expected BBS state data 2020: '/home/runner/.local/share/R/bbsBayes2/bbs_state_data_2020.rds'
#> Expected BBS stop data 2022: '/home/runner/.local/share/R/bbsBayes2/bbs_stop_data_2020.rds'
#> Expected BBS state data 2023: '/home/runner/.local/share/R/bbsBayes2/bbs_state_data_2022.rds'
#> Expected BBS stop data 2020: '/home/runner/.local/share/R/bbsBayes2/bbs_stop_data_2022.rds'
#> Expected BBS state data 2022: '/home/runner/.local/share/R/bbsBayes2/bbs_state_data_2023.rds'
#> Expected BBS stop data 2023: '/home/runner/.local/share/R/bbsBayes2/bbs_stop_data_2023.rds'
#> [1] FALSE FALSE FALSE FALSE TRUE FALSE