R/is_paginated.R

Defines functions is_paginated

Documented in is_paginated

#' Is the response paginated?
#'
#' Checks if the response is paginated by checking if a count element exists in
#' the response.
#'
#' @param json_string a string.
#'
#' @return A logical value.
#'
#' @keywords internal
is_paginated <- function(json_string) !is.na(count(json_string))

Try the quincunx package in your browser

Any scripts or data that you put into this service are public.

quincunx documentation built on July 9, 2023, 7:32 p.m.