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)
}

Try the ghclass package in your browser

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

ghclass documentation built on May 29, 2024, 8:44 a.m.