Description Usage Arguments Value References Examples
This function fetches a XKCD comic strip (randomly or by number) and displays it on screen.
1 2 |
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 |
a list containing the following fields:
imgURL of the XKCD comic strip image (png)
title Title of the XKCD comic strip
month
numNumber of the XKCD comic strip
link
year Year of publication
safe_title
transcript
alt
day
http://xkcd.com/license.html
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.