Skip to content

Instantly share code, notes, and snippets.

@gimoya
Created December 13, 2011 07:57
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 gimoya/1471156 to your computer and use it in GitHub Desktop.
Save gimoya/1471156 to your computer and use it in GitHub Desktop.
Function to source theBioBucket-Scripts
source_tBB <- function(file) {
# read theBioBucket-scripts using a security certificate
u <- paste("https://raw.github.com/gimoya/theBioBucket-Archives/master/R/", file, sep = "")
script <- getURL(u, followlocation = TRUE,
cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))
# parse lines and evaluate in the global environement
eval(parse(text = script), envir= .GlobalEnv)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment