{"id":14067860,"url":"https://github.com/curso-r/shinyhttr","last_synced_at":"2025-07-30T02:31:56.307Z","repository":{"id":56936171,"uuid":"163780826","full_name":"curso-r/shinyhttr","owner":"curso-r","description":"Give httr::progress the ability to talk to shinyWidgets::progressBar.","archived":false,"fork":false,"pushed_at":"2020-08-09T02:34:27.000Z","size":52,"stargazers_count":34,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-07T19:22:58.369Z","etag":null,"topics":["httr","r","rstats","shiny"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curso-r.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-02T01:37:05.000Z","updated_at":"2024-03-18T02:57:45.000Z","dependencies_parsed_at":"2022-08-21T06:20:38.171Z","dependency_job_id":null,"html_url":"https://github.com/curso-r/shinyhttr","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curso-r%2Fshinyhttr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curso-r%2Fshinyhttr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curso-r%2Fshinyhttr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curso-r%2Fshinyhttr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curso-r","download_url":"https://codeload.github.com/curso-r/shinyhttr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228075621,"owners_count":17865506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["httr","r","rstats","shiny"],"created_at":"2024-08-13T07:05:49.064Z","updated_at":"2024-12-04T08:31:16.568Z","avatar_url":"https://github.com/curso-r.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# shinyhttr\n\n[![Travis build status](https://travis-ci.org/curso-r/shinyhttr.svg?branch=master)](https://travis-ci.org/curso-r/shinyhttr) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/curso-r/shinyhttr?branch=master\u0026svg=true)](https://ci.appveyor.com/project/curso-r/shinyhttr) [![CRAN status](https://www.r-pkg.org/badges/version/shinyhttr)](https://cran.r-project.org/package=shinyhttr) [![CRAN downloads](https://cranlogs.r-pkg.org/badges/shinyhttr)](https://cran.r-project.org/package=shinyhttr)\n\nThe goal of shinyhttr is to integrate `httr::progress` with `shinyWidgets::progressBar`.\n\nIn practice, the difference will be\n\n```{r, eval=FALSE}\n# from this\nhttr::GET(\"http://download.com/large_file.txt\", \n          progress())\n\n\n# to this\nhttr::GET(\"http://download.com/large_file.txt\", \n          progress(session, id = \"my_progress_bar1\"))\n```\n\n\n![gif_progress_example.gif](man/figures/README-gif_progress_example.gif)\n\n## Installation\n\nFrom CRAN:\n\n```{r, eval=FALSE}\ninstall.packages(\"shinyhttr\")\n```\n\nFrom github:\n\n```{r, eval=FALSE}\ndevtools::install_github(\"curso-r/shinyhttr\")\n```\n\n## Example\n\n```{r, eval=FALSE}\nlibrary(shiny)\nlibrary(shinyWidgets)\nlibrary(httr)\nlibrary(shinyhttr)\n\nui \u003c- fluidPage(\n\n  sidebarLayout(\n\n    NULL,\n\n    mainPanel(\n      actionButton('download', 'Download 100MB file...'),\n      tags$p(\"see R console to compare both progress bars.\"),\n      progressBar(\n        id = \"pb\",\n        value = 0,\n        title = \"\",\n        display_pct = TRUE\n      )\n    )\n  )\n)\n\nserver \u003c- function(input, output, session) {\n  observeEvent(input$download, {\n    GET(\n      url = \"https://speed.hetzner.de/100MB.bin\",\n      shinyhttr::progress(session, id = \"pb\") # \u003c- the magic happens here. progress() now has session and id args\n    )\n  })\n}\n\nshinyApp(ui, server)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurso-r%2Fshinyhttr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurso-r%2Fshinyhttr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurso-r%2Fshinyhttr/lists"}