All Projects → curso-r → shinyhttr

curso-r / shinyhttr

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
Give httr::progress the ability to talk to shinyWidgets::progressBar.

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to shinyhttr

Plotly
An interactive graphing library for R
Stars: ✭ 2,096 (+6450%)
Mutual labels:  shiny
Ggedit
Interactively edit ggplot layer aesthetics and theme definitions
Stars: ✭ 223 (+596.88%)
Mutual labels:  shiny
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (+53.13%)
Mutual labels:  shiny
Fresh
Fresh shiny themes
Stars: ✭ 170 (+431.25%)
Mutual labels:  shiny
Shinyeffectforugui
Shiny effect of uGUI, which does not need mask or normal map.
Stars: ✭ 204 (+537.5%)
Mutual labels:  shiny
Shinymobile
shiny API for Framework7 (IOS/android)
Stars: ✭ 243 (+659.38%)
Mutual labels:  shiny
Explor
Interfaces for Multivariate Analysis in R
Stars: ✭ 157 (+390.63%)
Mutual labels:  shiny
SmaRP
Shiny app for projecting retirement funds / benefits
Stars: ✭ 17 (-46.87%)
Mutual labels:  shiny
Shinymanager
Simple and secure authentification mechanism for single shiny applications.
Stars: ✭ 213 (+565.63%)
Mutual labels:  shiny
RagGrid
R interface to ag-grid.
Stars: ✭ 31 (-3.12%)
Mutual labels:  shiny
Bslib
Tools for theming shiny and rmarkdown from R via Bootstrap (3 or 4) Sass.
Stars: ✭ 197 (+515.63%)
Mutual labels:  shiny
Shinystudio
A fully Dockerized, self-hosted development environment for teams. Develop where you serve.
Stars: ✭ 204 (+537.5%)
Mutual labels:  shiny
Bs4dash
Bootstrap 4 shinydashboard using AdminLTE3
Stars: ✭ 248 (+675%)
Mutual labels:  shiny
Electricshine
Create Standalone Installable Shiny Apps
Stars: ✭ 165 (+415.63%)
Mutual labels:  shiny
capm shiny
Demo project of creating an interactive analytical tool for stock market using CAPM.
Stars: ✭ 31 (-3.12%)
Mutual labels:  shiny
Gglabeller
Shiny gadget for labeling points on ggplot
Stars: ✭ 161 (+403.13%)
Mutual labels:  shiny
Shinyjqui
jQuery UI Interactions and Effects for Shiny
Stars: ✭ 225 (+603.13%)
Mutual labels:  shiny
carbon-intensity-app
A web app showing how much electricity is made from renewable sources in different parts of UK
Stars: ✭ 22 (-31.25%)
Mutual labels:  shiny
grillade
Grid sytem for shiny apps or rmarkdown and to create htmlwidgets matrix
Stars: ✭ 16 (-50%)
Mutual labels:  shiny
Shinycssloaders
⌛ Add loading animations to a Shiny output while it's recalculating
Stars: ✭ 248 (+675%)
Mutual labels:  shiny

shinyhttr

Travis build status AppVeyor build status CRAN status CRAN downloads

The goal of shinyhttr is to integrate httr::progress with shinyWidgets::progressBar.

In practice, the difference will be

# from this
httr::GET("http://download.com/large_file.txt", 
          progress())


# to this
httr::GET("http://download.com/large_file.txt", 
          progress(session, id = "my_progress_bar1"))

gif_progress_example.gif

Installation

From CRAN:

install.packages("shinyhttr")

From github:

devtools::install_github("curso-r/shinyhttr")

Example

library(shiny)
library(shinyWidgets)
library(httr)
library(shinyhttr)

ui <- fluidPage(

  sidebarLayout(

    NULL,

    mainPanel(
      actionButton('download', 'Download 100MB file...'),
      tags$p("see R console to compare both progress bars."),
      progressBar(
        id = "pb",
        value = 0,
        title = "",
        display_pct = TRUE
      )
    )
  )
)

server <- function(input, output, session) {
  observeEvent(input$download, {
    GET(
      url = "https://speed.hetzner.de/100MB.bin",
      shinyhttr::progress(session, id = "pb") # <- the magic happens here. progress() now has session and id args
    )
  })
}

shinyApp(ui, server)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].