Skip to content

Instantly share code, notes, and snippets.

@pedroj
Created January 28, 2015 14:17
Show Gist options
  • Save pedroj/315c557e221d1a3158fa to your computer and use it in GitHub Desktop.
Save pedroj/315c557e221d1a3158fa to your computer and use it in GitHub Desktop.
source_https <- function(url, ...) {
# load package
require(RCurl)
# parse and evaluate each .R script
sapply(c(url, ...), function(u) {
eval(parse(text = getURL(u, followlocation = TRUE, cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))),
envir = .GlobalEnv)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment