## Not run:
## In case you want to download a file directly from an URL:
# dta <- data.frame(name = "Data", url = "https://sociocav.usal.es/me/Stata/example.dta")
# getFiles(dta, path = "./")
## You can can also combine this function with getWikiData (among others).
## In case you want to download a picture of a person:
# A <- data.frame(name= getWikiData("Rembrandt")$label, url=getWikiData("Rembrandt")$pics)
# getFiles(A, path = "./", ext = "png")
## Or the pics of multiple authors:
# B <- getWikiData(c("Monet", "Renoir", "Caillebotte"))
# data <- data.frame(name = B$label, url = B$pics)
# getFiles(data, path = "./", ext = NULL)
## End(Not run)
Run the code above in your browser using DataLab