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:
img URL of the XKCD comic strip image (png)
title Title of the XKCD comic strip
month
num Number of the XKCD comic strip
link
year Year of publication
safe_title
transcript
alt
day
news
Details
Old R versions may have problems accessing HTTPS URLs such as
those used on the XKCD website. In case the default method of
download.file fails, alternatives will be tried. For
the best chance to succeed, ensure that the command line tools
"wget" and "curl" as well as the "RCurl"
package are installed.