Skip to content

Instantly share code, notes, and snippets.

@blahah
Forked from hadley/devtools.r
Last active August 29, 2015 13:56
Show Gist options
  • Save blahah/9326845 to your computer and use it in GitHub Desktop.
Save blahah/9326845 to your computer and use it in GitHub Desktop.
if ("devtools" %in% loadedNamespaces()) {
stop("You must restart R before installing devtools")
}
url <- "https://github.com/hadley/devtools/archive/v1.4.1.zip"
temp <- file.path(tempdir(), "devtools.zip")
setInternet2(TRUE)
suppressWarnings(download.file(url, temp, mode = "wb"))
install.packages(temp, repos = NULL)
file.remove(temp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment