ropensci / bowerbird

Keep a collection of sparkly data resources
https://docs.ropensci.org/bowerbird
Other
48 stars 6 forks source link

Mike's postrev notes #14

Closed mdsumner closed 6 years ago

mdsumner commented 6 years ago

Just a few notes, mostly minor.

vignette("bowerbird") is mostly present in the readme, should the readme be reduced? (How are they kept in-sync?)

"Sea Ice Trends and Climatologies from SMMR and SSM/I-SSMIS, Version 2" is not in the help for bb_example_sources, but Nimbus is (and is not in the example object)

seealso

spelling consistency

value

examples

Consider a dontrun for bb_sync, I think it's a nice place to repeat the overall pattern with an example that can be copy/pasted in whole:

td <- tempdir()  ## strictly, user should specify this explicitly for control over file system
cf <- bb_config(local_file_root = td)

## Bowerbird must then be told which data sources to synchronize. 
## Let’s use data from the Australian 2016 federal election, which is provided as one 
## of the example data sources:
my_source <- subset(bb_example_sources(),id=="aus-election-house-2016")

## add this data source to the configuration
cf <- bb_add(cf,my_source)
## Once the configuration has been defined and the data source added to it, run the sync process:
status <- bb_sync(cf)

## see the fruits of our labour (files are CSVs in this data source)
head(list.files(td, recursive = TRUE, pattern = "csv$"))

## we can run this at any later time and our repository will update if the source has changed
status2 <- bb_sync(cf)
raymondben commented 6 years ago

Thanks. All addressed now.