# NOT RUN {
# grab all of the feeds released by portland, oregon's
# bikeshare program "biketown", and return them as a
# named list of dataframes
# }
# NOT RUN {
get_gbfs(city = "portland")
# }
# NOT RUN {
# if, rather than returning the data, we wanted to save it:
# }
# NOT RUN {
get_gbfs(city = "portland", directory = tempdir())
# }
# NOT RUN {
# note that, usually, we'd supply a character string
# (like "pdx", maybe,) to the directory argument
# instead of `tempdir()`.
# if we're having trouble specifying the correct feed,
# we can also supply the actual URL to the feed
# }
# NOT RUN {
get_gbfs(city = "http://biketownpdx.socialbicycles.com/opendata/gbfs.json")
# }
# NOT RUN {
# the examples above grab every feed that portland releases.
# if, instead, we just wanted the dynamic feeds
# }
# NOT RUN {
get_gbfs(city = "portland", feeds = "dynamic")
# }
Run the code above in your browser using DataLab