Description Usage Arguments Examples
Caching helper
1 |
.data |
Result of a call to |
dir |
(character) Directory to cache in. Uses
|
... |
ignored |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
# cache
## first call is slower
api('http://localhost:5000') %>%
api_path(get) %>%
api_query(foo = "bar") %>%
api_cache()
## second call is faster, pulling from cache
api('http://localhost:5000') %>%
api_path(get) %>%
api_query(foo = "bar") %>%
api_cache()
# other egs
x <- api('api.crossref.org') %>%
api_path(works) %>%
api_query(rows = 1000) %>%
api_cache()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.