rtrek (version 0.2.0)

ma_image: Memory Alpha images

Description

Download a Memory Alpha image and return a ggplot object.

Usage

ma_image(url, file, keep = FALSE)

Arguments

url

character, the short url of the image, for example as returned by memory_alpha. See example.

file

character, output file name. Optional. See details.

keep

logical, if FALSE (default) then file is only temporary.

Value

a ggplot object

Details

By default the downloaded file is not retained (keep = FALSE). The filename is derived from url if file is not provided. Whether or not the output file is kept, a ggplot object of the image is returned.

Examples

Run this code
# NOT RUN {
ma_image("File:Gowron_attempts_to_recruit_Worf.jpg")
# }

Run the code above in your browser using DataCamp Workspace