Skip to content

Instantly share code, notes, and snippets.

@statzhero
Created February 7, 2014 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statzhero/8863983 to your computer and use it in GitHub Desktop.
Save statzhero/8863983 to your computer and use it in GitHub Desktop.
An R function for downloading CSV-files over SSL
read.url <- function(url, ...){
temporaryFile <- tempfile()
download.file(url, destfile = temporaryFile, method = "curl")
url.data <- read.csv(temporaryFile, ...)
return(url.data)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment