Learn R Programming

sleeperapi (version 1.0.4)

get_avatar_picture: 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.

Usage

get_avatar_picture(avatar_id, type = "full")

Value

Returns a picture displaying the avatar picture

Arguments

avatar_id

Avatar ID generated by Sleeper (character)

type

String that is either "full" or "thumbnail"

Author

Nick Bultman, njbultman74@gmail.com, October 2021

Examples

Run this code
if (FALSE) get_avatar_picture("c751b27d9158c1dd41bd33dc7e4bcdde", type = "full")

Run the code above in your browser using DataLab