https://github.com/ropensci/rgbif
Raw File
Tip revision: 4e9d6cbddc300b02347a692c69b85dcaf5729db7 authored by John Waller on 08 April 2024, 18:49:43 UTC
adding support for verbatim_extensions (#722)
Tip revision: 4e9d6cb
overload_classes.R
# gbif class sub-setters -------------------
# `[[.gbif` <- function(x, i) {
#   #y <- NextMethod()
#   if (inherits(i, "character")) {
#     tmp <- x[names(x) %in% i][[1]]
#   } else {
#     tmp <- x[[i]]
#   }
#   structure(tmp, class = "gbif",
#             args = attr(x, 'args'),
#             type = 'single',
#             return = attr(x, 'return'))
#   #x[names(x) %in% i][1]
# }

# `[.gbif` <- function(x, i) {
#   tmp <- x[names(x) %in% i]
#   structure(tmp, class = "gbif",
#             args = attr(x, 'args'),
#             type = 'single',
#             return = attr(x, 'return'))
# }
back to top