bb_data_sources | R Documentation |
Gets or sets the data sources contained in a bowerbird configuration object.
bb_data_sources(config)
bb_data_sources(config) <- value
config |
bb_config: a bowerbird configuration (as returned by |
value |
data.frame: new data sources to set (e.g. as returned by |
Note that an assignment along the lines of bb_data_sources(cf) <- new_sources
replaces all of the sources in the configuration with the new_sources
. If you wish to modify the existing sources then read them, modify as needed, and then rewrite the whole lot back into the configuration object.
a tibble with columns as specified by bb_source
bb_config
, bb_source
, bb_example_sources
## create a configuration and add data sources
cf <- bb_config(local_file_root="/your/data/directory")
cf <- bb_add(cf,bb_example_sources())
## examine the sources contained in cf
bb_data_sources(cf)
## replace the sources with different ones
## Not run:
bb_data_sources(cf) <- new_sources
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.