-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Possible in principle, but currently make it very easy to crash R.
library(httr)
down_progress <- function() {
bar <- NULL
function(down, up) {
total <- down[1]
if (total == 0) {
cat(".")
return()
}
current <- down[2]
if (is.null(bar)) {
bar <<- txtProgressBar(max = total)
}
setTxtProgressBar(bar, current)
}
}
prg <- config(noprogress = 0L, progressfunction = down_progress())
x <- GET("http://courses.had.co.nz/12-oscon/slides.zip", prg)
x <- GET("https://dl.dropbox.com/u/41902/ggplot2-course.zip", prg)
Metadata
Metadata
Assignees
Labels
No labels