R/designers.R

Defines functions get_designer

Documented in get_designer

#' Get details for a designer
#'
#' This function retrieves details for a designer using their id.
#'
#' @param id designer id
#'
#' @return tibble with name, notes, count of patterns, etc.
#'
#' @examples \dontrun{get_designer(id = 1)}
#'
#' @export
#'
get_designer <- function(id){

  response <- ravelry_get(path = paste0('/designers/', id, '.json'))

  response_tibble <- fromJSONtoTibble(response)

  response_tibble %>%
    select(-starts_with('users'))

}

Try the ravelRy package in your browser

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

ravelRy documentation built on Feb. 19, 2020, 5:07 p.m.