Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 1002 Bytes

README.md

File metadata and controls

60 lines (50 loc) · 1002 Bytes

xkcd

The goal of xkcd is to show XKCD comics in the plots pane.

Installation

You can install the development version of xkcd from GitHub with:

# install.packages("devtools")
devtools::install_github("Elm-trees/xkcd")

Example

library(xkcd)

first_comic <- xkcd(1)
print(first_comic)
#> $month
#> [1] "1"
#> 
#> $num
#> [1] 1
#> 
#> $link
#> [1] ""
#> 
#> $year
#> [1] "2006"
#> 
#> $news
#> [1] ""
#> 
#> $safe_title
#> [1] "Barrel - Part 1"
#> 
#> $transcript
#> [1] "[[A boy sits in a barrel which is floating in an ocean.]]\nBoy: I wonder where I'll float next?\n[[The barrel drifts into the distance. Nothing else can be seen.]]\n{{Alt: Don't we all.}}"
#> 
#> $alt
#> [1] "Don't we all."
#> 
#> $img
#> [1] "https://imgs.xkcd.com/comics/barrel_cropped_(1).jpg"
#> 
#> $title
#> [1] "Barrel - Part 1"
#> 
#> $day
#> [1] "1"