Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dash for R v0.2.0 #162

Merged
merged 27 commits into from
Jan 4, 2020
Merged

Dash for R v0.2.0 #162

merged 27 commits into from
Jan 4, 2020

Conversation

rpkyle
Copy link
Contributor

@rpkyle rpkyle commented Jan 3, 2020

This PR merges in changes to Dash for the v0.2.0 release. The major improvements include:

  • 🌶 🔄 hot-reloading support
  • 📺 option to interact with Dash apps within RStudio's viewer pane
  • 🗜 support for multiple forms of compression
  • support for asynchronous loading of Dash components for improved performance
  • ability to update multiple outputs whenever a callback fires
  • selective updating of outputs using dashNoUpdate()
  • 📞 support for clientside callbacks in JavaScript
  • 🎨 dash-renderer updated to v1.2.2

The full list of changes follows below.


Added

  • Support for asynchronous/dynamic loading of dependencies, resource caching, and asset fingerprinting #157
  • Compression of text resources using brotli, gzip, or deflate #157
  • Support for adding <meta> tags to index #142
  • Hot reloading now supported in debug mode #127
  • Support for displaying Dash for R applications within RStudio's viewer pane when use_viewer = TRUE
  • Clientside callbacks written in JavaScript are now supported #130
  • Multiple outputs are now supported #119
  • Selective callback updates to properties now supported with dashNoUpdate() #111
  • Additional line number context inserted when available within stack traces #133
  • Integration and unit tests are now performed when commits are made to open pull requests
  • Support returning asset URLs via app$get_asset_url when app is loaded via source() or APP_ROOT_PATH environment variable is defined #160
  • url_base_pathname added; mimics functionality in Dash for Python, sets defaults for routes_pathname_prefix and requests_pathname_prefix when not otherwise provided #161

Changed

  • dash-renderer updated to v1.2.2 #137
  • Dash for R no longer requires forked reqres, patch applied upstream thomasp85/reqres#9
  • The pruned_errors parameter has been renamed to dev_tools_prune_errors #113

Fixed

  • Stack traces now display properly within viewer pane when debug = TRUE and use_viewer = TRUE #137
  • Patch for reqres package to handle cookies containing multiple "=" #122
  • Handling for user-defined errors in callbacks implemented #116
  • Fixes for hot reloading interval handling and refreshing apps within viewer pane #148
  • get_asset_url checks getAppPath() as well as DASH_APP_ROOT_PATH environment variable when invoked #161

rpkyle and others added 26 commits August 23, 2019 09:23
* rename pruned_errors to prune_errors

* rename pruned to prune

* provide support for no_update in Dash for R (#111)
* rename pruned_errors to prune_errors

* rename pruned to prune

* 🔨 handle stop errors

* 🚨 add test for stop errors
* Add line number context to stack traces when srcrefs are available (#133)

* ✨ Support line #s when in debug mode

* ✨ Add use_viewer option for RStudio

* 🚨 Add soft and hard hot reloading tests
* ✨ initial support for meta tags

* support arbitrary tags

* 🚨 add tests

* 🔬 add asserts

* add reference to meta tag PR

* ⏩ indent meta tags
* add eager_loading parameter

* 📛 add buildFingerprint

* 📛 add checkFingerprint

* use getDependencyPath, + 🐾/Etag support

* updates to support async

* ✨ properly support gz compression

* 🐛 post-async fixes for CSS handling
…races (#137)

* 🚚 upgrade dash-renderer to v1.2.2, 🔨 fix stack traces

* 🚚 add polyfill.js
@rpkyle rpkyle added this to the Dash v1.8 milestone Jan 3, 2020
@rpkyle rpkyle self-assigned this Jan 3, 2020
# serving order of CSS and JS tags: package -> external -> assets
css_tags <- paste(c(css_deps,
css_external,
css_assets),
collapse = "\n")

collapse = "\n ")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this whitespace necessary here, and in the following instances of css_tags?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is an attempt to properly indent the tags.

Copy link
Contributor

@HammadTheOne HammadTheOne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and based on the testing of the dev branch of dashR for the past few weeks the initial issues with the dev_tools and new features have been cleared up, and the documentation explains the code well.

💃

@rpkyle rpkyle merged commit f6c13a9 into master Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants