download_party_avatar {databraryr}R Documentation

Returns the Avatar(s) (images) for Authorized User(s).

Description

Returns the Avatar(s) (images) for Authorized User(s).

Usage

download_party_avatar(
  party_id = 6,
  show_party_info = TRUE,
  vb = options::opt("vb"),
  rq = NULL
)

Arguments

party_id

A number or range of numbers. Party number or numbers to retrieve information about. Default is 6 (Rick Gilmore).

show_party_info

A logical value. Show the person's name and affiliation in the output. Default is TRUE.

vb

Show verbose messages. (Defaults to FALSE, overwritable using option 'databraryr.vb' or environment variable 'R_DATABRARYR_VB')

rq

An httr2 request object. If not provided, a new request is generated via make_default_request().

Value

An list with the avatar (image) file and a name_affil string.

Examples


## Not run: 
download_party_avatar() # Show Rick Gilmore's (party 6) avatar.

# Download avatars from Databrary's founders (without name/affiliations)
download_party_avatar(5:7, show_party_info = FALSE)

# Download NYU logo
download_party_avatar(party = 8)

## End(Not run)


[Package databraryr version 0.6.6 Index]