Nothing
DownloadEOLpages <- function(pages, to.file=TRUE, MyKey=NULL, verbose=TRUE, ...) {
if(Sys.getlocale("LC_ALL") == "C")
warning("Sys.getlocale is set to C. In order to read UTF characters, you need to set the locale aspect to UTF-8 using Sys.setlocale")
EOLpages <- vector("list", length=length(pages))
for (i in sequence(length(pages))) {
pageNum <- pages[i]
web <- paste("http://eol.org/api/pages/", pageNum, ".xml?images=75&videos=75&sounds=75&maps=75&text=75&iucn=true&subjects=all&details=true&common_names=true&references=true", sep="")
if(!is.null(MyKey))
web <- paste(web, "&key=", MyKey, sep="")
if(to.file) {
write(getURL(web, ...), file=paste("eol", pages[i], ".xml", sep=""))
if(verbose)
print(paste("Downloaded ", "eol", pages[i], ".xml", sep=""))
}
else {
EOLpages[[i]] <- getURL(web, ...)
names(EOLpages)[[i]] <- paste("eol", pages[i], sep="")
if(verbose)
print(paste("eol", pages[i], " saved as R object", sep=""))
}
Sys.sleep(1)
}
if(to.file)
return(paste("eol", pages, ".xml", sep=""))
else
return(EOLpages)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.