soql_limit {soql} | R Documentation |
Adds a parameter to the SODA URL that limits how many responses the API will send back.
soql_limit(soql_list, limit)
soql_list |
The |
limit |
Number of records desired. |
Returns a new soql
object, with a limit parameter added, for use in other functions.
Documentation on the SODA website
if (require(magrittr)) {
# With pipes
my_url <- soql() %>%
soql_limit(5) %>%
as.character()
} else {
# Without pipes
soql_chain <- soql()
soql_chain <- soql_limit(soql_chain, 5)
my_url <- as.character(soql_chain)
}