Skip to contents

Return the local directory of each data source in a configuration. Files from each data source are stored locally in the associated directory. Note that if a data source has multiple source_url values, this function might return multiple directory names (depending on whether those source_urls map to the same directory or not).

Usage

bb_data_source_dir(config)

Arguments

config

bb_config: configuration as returned by bb_config

Value

character vector of directories

Examples

cf <- bb_config("/my/file/root") %>%
  bb_add(bb_example_sources())
bb_data_source_dir(cf)
#> [1] "/my/file/root/downloads.psl.noaa.gov/Datasets/noaa.oisst.v2/"                        
#> [2] "/my/file/root/results.aec.gov.au/20499/Website/"                                     
#> [3] "/my/file/root/data.marine.copernicus.eu/SEALEVEL_GLO_PHY_L4_MY_008_047"              
#> [4] "/my/file/root/oceandata.sci.gsfc.nasa.gov/SeaWiFS/Mapped/Monthly/9km/chlor"          
#> [5] "/my/file/root/daacdata.apps.nsidc.org/pub/DATASETS/nsidc0192_seaice_trends_climo_v3/"
#> [6] "/my/file/root/www.ngdc.noaa.gov/mgg/greatlakes/superior/data/"