Skip to content

Instantly share code, notes, and snippets.

@hadley
Last active April 16, 2019 21:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hadley/4506250 to your computer and use it in GitHub Desktop.
Save hadley/4506250 to your computer and use it in GitHub Desktop.
Install the development version of devtools on windows.
if ("devtools" %in% loadedNamespaces()) {
stop("You must restart R before installing devtools")
}
url <- "https://gist.github.com/raw/4506250/devtools.zip"
temp <- file.path(tempdir(), "devtools.zip")
setInternet2(TRUE)
suppressWarnings(download.file(url, temp, mode = "wb"))
install.packages(temp, repos = NULL)
file.remove(temp)
@leveaust
Copy link

leveaust commented Jul 4, 2018

hi,
Is this script still valid?
Sincerely
Stéphane

@rileytwo
Copy link

Error: 'setInternet2' is defunct. Echoing @leveaust, is this script still valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment