Get the thumbnail image from any Wikipedia page

getWikiPic(
x,
width = 220,
picSaveDir = tempdir(),
quiet = T,
openDir = F,
clearCache = F
)

## Arguments

x search term for finding a Wikipedia page the width of the downloaded image in pixels; default=220 the location to download images to; default=tempdir(); use paste0(getwd(),"/wiki") to save to a subfolder in your working directory or file.choose() to pic a location on the fly suppress verbose feedback? default=T open the picSaveDir location to browse images in finder/windows explorer? default=F WARNING delete the picSaveDir? This will delete the whole directory, so never set picSaveDir to getwd(); default=F

## Details

Downloads the top right image in the infobox of a wikipage determined by your search term. Also caches this image so if you ask for the same image again, it doesn't download it.