getXKCD: Display your favourite XKCD comic in R

Description Usage Arguments Value References Examples

View source: R/getXKCD.R

Description

This function fetches a XKCD comic strip (randomly or by number) and displays it on screen.

Usage

1
2
  getXKCD(which = "current", display = TRUE, html = FALSE,
    saveImg = FALSE)

Arguments

which

string: either "current" or "random"; or a number indicating the specific strip.

display

logical; TRUE (default) if you like to display the strip on the screen

html

logical; TRUE if you like to open the XKCD web page for the selected comic in your browser: if TRUE it sets display and saveImg arguments to FALSE. Default FALSE

saveImg

logical; TRUE if you want to save image in the current directory. Default FALSE

Value

a list containing the following fields:

References

http://xkcd.com/license.html

Examples

1
2
library("RXKCD")
significant <- getXKCD(882, display=FALSE)

RXKCD documentation built on May 2, 2019, 5:39 p.m.

Related to getXKCD in RXKCD...