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))
maialab/quincunx documentation built on Aug. 18, 2022, 5:31 a.m.