R/rectangle.R

Defines functions glean_int glean_chr glean_lgl

# hack-y implementation of typed pluck with an NA default
glean_lgl <- function(.x, ..., .default = NA) {
  map_lgl(list(.x), ..., .default = .default)
}

glean_chr <- function(.x, ..., .default = NA) {
  map_chr(list(.x), ..., .default = .default)
}

glean_int <- function(.x, ..., .default = NA) {
  map_int(list(.x), ..., .default = .default)
}
jennybc/googlesheets2 documentation built on Dec. 10, 2023, 12:56 a.m.