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.
See also
Other BBS data functions:
fetch_bbs_data()
,
load_bbs_data()
,
remove_cache()
Examples
have_bbs_data()
#> Expected BBS state data 2024: '/home/runner/.local/share/R/bbsBayes2/bbs_state_data_2024.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 2024: '/home/runner/.local/share/R/bbsBayes2/bbs_stop_data_2022.rds'
#> Expected BBS state data 2020: '/home/runner/.local/share/R/bbsBayes2/bbs_state_data_2023.rds'
#> Expected BBS stop data 2022: '/home/runner/.local/share/R/bbsBayes2/bbs_stop_data_2023.rds'
#> Expected BBS state data 2023: '/home/runner/.local/share/R/bbsBayes2/bbs_state_data_2024.rds'
#> Expected BBS stop data 2024: '/home/runner/.local/share/R/bbsBayes2/bbs_stop_data_2024.rds'
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE