View source: R/pagination_helpers.R
fetch_until | R Documentation |
fetch_until
will retrieve paginated results until a condition is met.
This is useful when searching for a particular value or record.
fetch_until(fn, .until, ...)
fn |
The API function to be called. |
.until |
A function which returns a boolean value.
|
... |
Arguments passed to |
A list
with the concatenated results of each page of fn
.
Other pagination:
fetch_all()
## Not run:
columns <- fetch_until(tables_list_columns,
.until = function(x) x == "voterbase_id")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.