get_avatar_picture {sleeperapi}R Documentation

Display Avatar

Description

Given an avatar ID, grab the picture (full or thumbnail) concerning that particular avatar. Note that this function downloads the image into your temporary directory to display it. Then, the function deletes the file before completing. If it would be preferred to keep the image at the temporary location, set the keep_image argument to TRUE (default is FALSE).

Usage

get_avatar_picture(avatar_id, type = "full", keep_image = FALSE)

Arguments

avatar_id

Avatar ID generated by Sleeper (character)

type

String that is either "full" or "thumbnail"

keep_image

FALSE to delete the image after displaying it or TRUE to keep it

Value

Returns a picture displaying the avatar picture

Author(s)

Nick Bultman, njbultman74@gmail.com, October 2021

Examples

## Not run: get_avatar_picture("c751b27d9158c1dd41bd33dc7e4bcdde",
   type = "full",
   keep_image = FALSE)
## End(Not run)


[Package sleeperapi version 1.1.1 Index]