The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of shinyhttr is to integrate httr::progress
with shinyWidgets::progressBar
.
In practice, the difference will be
# from this
::GET("http://download.com/large_file.txt",
httrprogress())
# to this
::GET("http://download.com/large_file.txt",
httrprogress(session, id = "my_progress_bar1"))
From CRAN:
install.packages("shinyhttr")
From github:
::install_github("curso-r/shinyhttr") devtools
library(shiny)
library(shinyWidgets)
library(httr)
library(shinyhttr)
<- fluidPage(
ui
sidebarLayout(
NULL,
mainPanel(
actionButton('download', 'Download 100MB file...'),
$p("see R console to compare both progress bars."),
tagsprogressBar(
id = "pb",
value = 0,
title = "",
display_pct = TRUE
)
)
)
)
<- function(input, output, session) {
server observeEvent(input$download, {
GET(
url = "https://speed.hetzner.de/100MB.bin",
::progress(session, id = "pb") # <- the magic happens here. progress() now has session and id args
shinyhttr
)
})
}
shinyApp(ui, server)
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.