{"id":13426091,"url":"https://github.com/plotly/dashR","last_synced_at":"2025-03-15T20:31:59.257Z","repository":{"id":34522285,"uuid":"101217971","full_name":"plotly/dashR","owner":"plotly","description":"Create data science and AI web apps in R","archived":false,"fork":false,"pushed_at":"2024-10-02T19:07:35.000Z","size":65236,"stargazers_count":384,"open_issues_count":51,"forks_count":32,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-10-28T04:25:18.374Z","etag":null,"topics":["dash","data-science","data-visualization","plotly","plotly-dash","python","r","react","web-application"],"latest_commit_sha":null,"homepage":"https://dashr.plotly.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plotly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null},"funding":{"github":"plotly","custom":"https://plotly.com/products/consulting-and-oem/"}},"created_at":"2017-08-23T19:35:29.000Z","updated_at":"2024-10-09T17:54:18.000Z","dependencies_parsed_at":"2023-01-15T07:34:20.680Z","dependency_job_id":null,"html_url":"https://github.com/plotly/dashR","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2FdashR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2FdashR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2FdashR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2FdashR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plotly","download_url":"https://codeload.github.com/plotly/dashR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790939,"owners_count":20348378,"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":["dash","data-science","data-visualization","plotly","plotly-dash","python","r","react","web-application"],"created_at":"2024-07-31T00:01:26.120Z","updated_at":"2025-03-15T20:31:54.238Z","avatar_url":"https://github.com/plotly.png","language":"JavaScript","readme":"[![CircleCI](https://circleci.com/gh/plotly/dashR/tree/master.svg?style=svg)](https://app.circleci.com/pipelines/github/plotly/dashR?branch=master)\n[![GitHub](https://img.shields.io/github/license/plotly/dashR.svg?color=dark-green)](https://github.com/plotly/dashR/blob/master/LICENSE)\n[![CRAN status](https://www.r-pkg.org/badges/version-ago/dash)](https://CRAN.R-project.org/package=dash)\n[![](http://cranlogs.r-pkg.org/badges/grand-total/dash)](https://CRAN.R-project.org/package=dash)\n[![](https://cranlogs.r-pkg.org/badges/dash)](https://CRAN.R-project.org/package=dash)\n\n# Dash for R\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://dash.plotly.com/project-maintenance\"\u003e\n    \u003cimg src=\"https://dash.plotly.com/assets/images/maintained-by-community.png\" width=\"600px\" alt=\"Maintained by the Plotly Community\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n#### Create beautiful, analytic web applications in R.\n\n[Documentation](https://dash.plotly.com/r/) | [Gallery](https://dash.gallery/Portal/)\n\n## Installation\n\n\u003chttps://dash.plotly.com/r/installation\u003e\n\n\u003e 🛑 Make sure you're on at least version `3.0.2` of R. You can see what version of R you have by entering `version` in the R CLI. [CRAN](https://cran.r-project.org/bin/) is the easiest place to download the latest R version.\n\nAs of 2020-06-04, **dash** and the currently released versions of all core component libraries are _available for download via CRAN!_ Installing `dash` and its dependencies is as simple as\n\n```r\ninstall.packages(\"dash\")\n```\n\nUsers who wish to install (stable) development versions of the package as well as Dash components from GitHub may instead use `install_github` and specify the development branch:\n\n```r\ninstall.packages(c(\"fiery\", \"routr\", \"reqres\", \"htmltools\", \"base64enc\", \"plotly\", \"mime\", \"crayon\", \"devtools\"))\n\n# installs dash, which includes dashHtmlComponents, dashCoreComponents, and dashTable\n# and will update the component libraries when a new package is released\ndevtools::install_github(\"plotly/dashR\", ref=\"dev\", upgrade = TRUE)\n```\n\nThen, to load the packages in R:\n\n```r\nlibrary(dash)\n```\n\nThat's it!\n\n## Getting Started\n\n\u003chttps://dash.plotly.com/r/layout\u003e\n\nThe R package **dash** makes it easy to create reactive web applications powered by R. It provides an [R6](https://CRAN.R-project.org/package=R6) class, named `Dash`, which may be initialized via the `new()` method.\n\n```r\nlibrary(dash)\n\napp \u003c- Dash$new()\n```\n\nSimilar to [Dash for Python](https://github.com/plotly/dash) and [Dash for Julia](https://github.com/plotly/Dash.jl), every Dash for R application needs a layout (i.e., user interface) and a collection of callback functions which define the updating logic to perform when input value(s) change. Take, for instance, this basic example of formatting a string:\n\n```r\nlibrary(dash)\n\ndash_app() %\u003e%\n  set_layout(\n    dccInput(id = \"text\", \"sample\"),\n    div(\"CAPS: \", span(id = \"out1\")),\n    div(\"small: \", span(id = \"out2\"))\n  ) %\u003e%\n  add_callback(\n    list(\n      output(\"out1\", \"children\"),\n      output(\"out2\", \"children\")\n    ),\n    input(\"text\", \"value\"),\n    function(text) {\n      list(\n        toupper(text),\n        tolower(text)\n      )\n    }\n  ) %\u003e%\n  run_app()\n```\n\nHere the `showcase = TRUE` argument opens a browser window and automatically loads the Dash app for you.\n\n## Hello world example using `dccGraph`\n\n```r\nlibrary(dash)\n\n# Create a Dash app\napp \u003c- dash_app()\n\n# Set the layout of the app\napp %\u003e% set_layout(\n  h1('Hello Dash'),\n  div(\"Dash: A web application framework for your data.\"),\n  dccGraph(\n    figure = list(\n      data = list(\n        list(\n          x = list(1, 2, 3),\n          y = list(4, 1, 2),\n          type = 'bar',\n          name = 'SF'\n        ),\n        list(\n          x = list(1, 2, 3),\n          y = list(2, 4, 5),\n          type = 'bar',\n          name = 'Montr\\U{00E9}al'\n        )\n      ),\n      layout = list(title = 'Dash Data Visualization')\n    )\n  )\n)\n\n# Run the app\napp %\u003e% run_app()\n```\n\n---\n\n## Screenshot of \"Hello World\" app\n\n![hello_dcc](https://user-images.githubusercontent.com/9809798/55428329-df18be80-5556-11e9-8d21-c55250621cd6.gif)\n","funding_links":["https://github.com/sponsors/plotly","https://plotly.com/products/consulting-and-oem/"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotly%2FdashR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplotly%2FdashR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotly%2FdashR/lists"}