R/user_type.R

Defines functions user_type

Documented in user_type

#' @rdname user
#' @export
#'
user_type = function(user) {
  arg_is_chr(user)

  res = purrr::map(user, purrr::safely(github_api_get_user))
  purrr::map_chr(res, c("result","type"), .default=NA)
}
rundel/ghclass documentation built on March 29, 2024, 4:27 p.m.