Skip to content

Instantly share code, notes, and snippets.

@cpsievert
Last active November 27, 2018 14:48
Show Gist options
  • Select an option

  • Save cpsievert/ae23e10bf74df1f3c587 to your computer and use it in GitHub Desktop.

Select an option

Save cpsievert/ae23e10bf74df1f3c587 to your computer and use it in GitHub Desktop.
library(curl)
d3 <- "https://github.com/mbostock/d3/archive/v3.0.6.zip"
tmp <- tempfile()
curl::curl_download(d3, tmp, mode = "wb")
unzip(tmp)
unlink(tmp)
library(gistr)
gistr::gist_create(files = "d3-3.0.6/d3.js")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment