Skip to content

Commit cfa29d6

Browse files
authored
Dash for R v0.7.0 (#219)
1 parent c1c51f3 commit cfa29d6

10 files changed

+40353
-25
lines changed

CHANGELOG.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [0.6.4] - 2020-07-14
6-
**Changed**
7-
- Removes warning message when an app is launched without any component ID's present in the layout. When writing callbacks it iss natural to assume that an ID is necessary, and this warning may be misleading for apps without callbacks (for more details, see [#216](https://github.com/plotly/dashR/pull/216).
5+
## [0.7.0] - 2020-07-28
6+
### Added
7+
- Dash for R now supports an `update_title` parameter, as in Dash for Python. [#218](https://github.com/plotly/dashR/pull/218)
8+
9+
### Changed
10+
- `dash-renderer` updated to v1.6.0
11+
- Dash for R now depends on v4.9.0 of `dashTable` (provides several fixes from [#806](https://github.com/plotly/dash-table/pull/806), [#808](https://github.com/plotly/dash-table/pull/808) and [#809](https://github.com/plotly/dash-table/pull/809)) and v1.10.2 of `dashCoreComponents` (which updates Plotly.js to 1.54.7 via [#835](https://github.com/plotly/dash-core-components/pull/835)).
812

13+
### Removed
14+
- Dash for R no longer produces a warning when callbacks with no IDs are declared; see [#216](https://github.com/plotly/dashR/pull/216).
915

1016
## [0.6.3] - 2020-06-25
11-
**Changed**
17+
### Changed
1218
- `dash-renderer` updated to v1.5.1
1319

14-
**Fixed**
20+
### Fixed
1521
- Resolves a regression that prevented multiple loading states from displaying concurrently when a callback updates multiple outputs (for more details, see [#1310](https://github.com/plotly/dash/pull/1310)).
1622

1723
## [0.6.2] - 2020-06-19

DESCRIPTION

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Package: dash
22
Title: An Interface to the Dash Ecosystem for Authoring Reactive Web Applications
3-
Version: 0.6.4
3+
Version: 0.7.0
44
Authors@R: c(person("Chris", "Parmer", role = c("aut"), email = "[email protected]"), person("Ryan Patrick", "Kyle", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-5829-9867"), email = "[email protected]"), person("Carson", "Sievert", role = c("aut"), comment = c(ORCID = "0000-0002-4958-2844")), person("Hammad", "Khan", role = c("aut"), email = "[email protected]"), person(family = "Plotly Technologies", role = "cph"))
55
Description: A framework for building analytical web applications, Dash offers a pleasant and productive development experience. No JavaScript required.
66
Depends:
77
R (>= 3.0.2)
88
Imports:
99
dashHtmlComponents (== 1.0.3),
10-
dashCoreComponents (== 1.10.1),
11-
dashTable (== 4.8.1),
10+
dashCoreComponents (== 1.10.2),
11+
dashTable (== 4.9.0),
1212
R6,
1313
fiery (> 1.0.0),
1414
routr (> 0.2.0),
@@ -33,8 +33,8 @@ Collate:
3333
'print.R'
3434
'internal.R'
3535
Remotes: plotly/dash-html-components@e63acfa,
36-
plotly/dash-core-components@5049379,
37-
plotly/dash-table@9603c6c
36+
plotly/dash-core-components@0770afb,
37+
plotly/dash-table@75ac3d9
3838
License: MIT + file LICENSE
3939
Encoding: UTF-8
4040
LazyData: true

R/dash.R

+13-6
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,16 @@ Dash <- R6::R6Class(
5555
#' possible layout mis-specifications when registering a callback.
5656
#' @param show_undo_redo Logical. Set to `TRUE` to enable undo and redo buttons for
5757
#' stepping through the history of the app state.
58+
#' @param update_title Character. Defaults to `Updating...`; configures the document.title
59+
#' (the text that appears in a browser tab) text when a callback is being run.
60+
#' Set to NULL or '' if you don't want the document.title to change or if you
61+
#' want to control the document.title through a separate component or
62+
#' clientside callback.
5863
initialize = function(server = fiery::Fire$new(),
59-
assets_folder = 'assets',
60-
assets_url_path = '/assets',
64+
assets_folder = "assets",
65+
assets_url_path = "/assets",
6166
eager_loading = FALSE,
62-
assets_ignore = '',
67+
assets_ignore = "",
6368
serve_locally = TRUE,
6469
meta_tags = NULL,
6570
url_base_pathname = "/",
@@ -69,7 +74,8 @@ Dash <- R6::R6Class(
6974
external_stylesheets = NULL,
7075
compress = TRUE,
7176
suppress_callback_exceptions = FALSE,
72-
show_undo_redo = FALSE) {
77+
show_undo_redo = FALSE,
78+
update_title="Updating...") {
7379

7480
# argument type checking
7581
assertthat::assert_that(inherits(server, "Fire"))
@@ -96,6 +102,7 @@ Dash <- R6::R6Class(
96102
self$config$external_scripts <- external_scripts
97103
self$config$external_stylesheets <- external_stylesheets
98104
self$config$show_undo_redo <- show_undo_redo
105+
self$config$update_title <- update_title
99106

100107
# ------------------------------------------------------------
101108
# Initialize a route stack and register a static resource route
@@ -1663,7 +1670,7 @@ Dash <- R6::R6Class(
16631670
config <- sprintf("<script id='_dash-config' type='application/json'> %s </script>", to_JSON(self$config))
16641671

16651672
if (is.null(private$name))
1666-
private$name <- 'dash'
1673+
private$name <- 'Dash'
16671674

16681675
if (!is.null(private$custom_index)) {
16691676
string_index <- glue::glue(private$custom_index, .open = "{%", .close = "%}")
@@ -1681,7 +1688,7 @@ Dash <- R6::R6Class(
16811688
config <- sprintf("<script id='_dash-config' type='application/json'> %s </script>", to_JSON(self$config))
16821689

16831690
if (is.null(private$name))
1684-
private$name <- 'dash'
1691+
private$name <- 'Dash'
16851692

16861693
if (!is.null(private$custom_index)) {
16871694
string_index <- glue::glue(private$custom_index, .open = "{%", .close = "%}")

R/internal.R

+8-8
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
all_files = FALSE),
3737
class = "html_dependency"),
3838
`dash-renderer-dev` = structure(list(name = "dash-renderer",
39-
version = "1.5.1",
39+
version = "1.6.0",
4040
src = list(href = "https://unpkg.com/[email protected]",
41-
file = "lib/dash-renderer@1.5.1"),
41+
file = "lib/dash-renderer@1.6.0"),
4242
meta = NULL,
4343
script = "dash-renderer/dash_renderer.dev.js",
4444
stylesheet = NULL,
@@ -48,9 +48,9 @@
4848
all_files = FALSE),
4949
class = "html_dependency"),
5050
`dash-renderer-map-dev` = structure(list(name = "dash-renderer",
51-
version = "1.5.1",
51+
version = "1.6.0",
5252
src = list(href = "https://unpkg.com/[email protected]",
53-
file = "lib/dash-renderer@1.5.1"),
53+
file = "lib/dash-renderer@1.6.0"),
5454
meta = NULL,
5555
script = "dash-renderer/dash_renderer.dev.js.map",
5656
stylesheet = NULL,
@@ -60,9 +60,9 @@
6060
all_files = FALSE),
6161
class = "html_dependency"),
6262
`dash-renderer-prod` = structure(list(name = "dash-renderer",
63-
version = "1.5.1",
63+
version = "1.6.0",
6464
src = list(href = "https://unpkg.com/[email protected]",
65-
file = "lib/dash-renderer@1.5.1"),
65+
file = "lib/dash-renderer@1.6.0"),
6666
meta = NULL,
6767
script = "dash-renderer/dash_renderer.min.js",
6868
stylesheet = NULL,
@@ -72,9 +72,9 @@
7272
all_files = FALSE),
7373
class = "html_dependency"),
7474
`dash-renderer-map-prod` = structure(list(name = "dash-renderer",
75-
version = "1.5.1",
75+
version = "1.6.0",
7676
src = list(href = "https://unpkg.com/[email protected]",
77-
file = "lib/dash-renderer@1.5.1"),
77+
file = "lib/dash-renderer@1.6.0"),
7878
meta = NULL,
7979
script = "dash-renderer/dash_renderer.min.js.map",
8080
stylesheet = NULL,

0 commit comments

Comments
 (0)