Skip to content

Commit eb44067

Browse files
authored
Merge pull request #215 from jbampton/lint-markdown
Lint Markdown.
2 parents 9757853 + 561cb0d commit eb44067

File tree

2 files changed

+25
-32
lines changed

2 files changed

+25
-32
lines changed

CHANGELOG.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1919

2020
## [0.6.0] - 2020-06-17
2121
### Changed
22-
- Dash for R now depends on v4.8.0 of `dashTable`, which incorporates changes and bug fixes summarized in https://github.com/plotly/dash-table/pull/787, https://github.com/plotly/dash-table/pull/785, and https://github.com/plotly/dash-table/pull/793.
22+
- Dash for R now depends on v4.8.0 of `dashTable`, which incorporates changes and bug fixes summarized in <https://github.com/plotly/dash-table/pull/787>, <https://github.com/plotly/dash-table/pull/785>, and <https://github.com/plotly/dash-table/pull/793>.
2323

2424
## [0.5.0] - 2020-05-28
2525
### Added
@@ -95,7 +95,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
9595
- Fixes for hot reloading interval handling and refreshing apps within viewer pane [#148](https://github.com/plotly/dashR/pull/148)
9696
- `get_asset_url` checks `getAppPath()` as well as `DASH_APP_ROOT_PATH` environment variable when invoked [#161](https://github.com/plotly/dashR/pull/161)
9797

98-
9998
## [0.1.0] - 2019-07-10
10099
### Added
101100
- Initial release
@@ -118,25 +117,21 @@ This project adheres to [Semantic Versioning](http://semver.org/).
118117
### Fixed
119118
- CSS dependencies are now properly loaded [#94](https://github.com/plotly/dashR/pull/94)
120119

121-
122120
## [0.0.7] - 2019-04-09
123121
### Removed
124122
- `dependencies_set`, `dependencies_get`, and `dependencies_get_internal` methods removed from package
125123

126-
127124
### [0.0.6] - 2019-04-08
128125
### Added
129126
- Local asset serving implemented [#64](https://github.com/plotly/dashR/pull/64)
130127

131-
132128
### [0.0.5] - 2019-04-01
133129
### Added
134130
- Support for direct import of `plot_ly` and `ggplotly` figures [#71](https://github.com/plotly/dashR/pull/71)
135131

136132
### Changed
137133
- `layout_set` method renamed to `layout` for parity with Dash for Python
138134

139-
140135
### [0.0.4] - 2019-03-14
141136
### Added
142137
- Support for externally hosted CSS via `external_stylesheets`
@@ -152,7 +147,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
152147
- Bug preventing remotely hosted JS resolved
153148
- Local serving of dependencies fixed when `href` attributes also present
154149

155-
156150
### [0.0.3] - 2019-03-08
157151
### Added
158152
- `assert_valid_callbacks` to validate callback handler definitions and ordering of `input` and `state` using
@@ -163,6 +157,5 @@ This project adheres to [Semantic Versioning](http://semver.org/).
163157
- Handler function for callbacks now passed via `func` argument to `app$callback()`
164158
- `dash_renderer` updated to v0.18.0
165159

166-
167160
### [0.0.0.9000] - 2018-07-25
168161
- Initial development version

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88

99
#### Create beautiful, analytic web applications in R.
1010

11-
[Documentation](https://dashr.plotly.com/) | [Gallery](https://dash-gallery.plotly.host/Portal/)
11+
[Documentation](https://dashr.plotly.com/) | [Gallery](https://dash-gallery.plotly.host/Portal/)
1212

1313
## Installation
1414

15-
https://dashr.plotly.com/installation
15+
<https://dashr.plotly.com/installation>
1616

1717
> 🛑 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.
1818
1919
As 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
20+
2021
```r
2122
install.packages("dash")
2223
```
@@ -44,11 +45,10 @@ That's it!
4445

4546
## Getting Started
4647

47-
https://dashr.plotly.com/getting-started
48+
<https://dashr.plotly.com/getting-started>
4849

4950
The R package **dash** makes it easy to create reactive web applications powered by R. It provides an [R6](https://cran.r-project.org/web/packages/R6/index.html) class, named `Dash`, which may be initialized via the `new()` method.
5051

51-
5252
```r
5353
library(dash)
5454
library(dashHtmlComponents)
@@ -69,9 +69,9 @@ app$layout(
6969
)
7070
)
7171

72-
app$callback(output = list(id="outputID", property="children"),
72+
app$callback(output = list(id="outputID", property="children"),
7373
params = list(input(id="inputID", property="value"),
74-
state(id="inputID", property="type")),
74+
state(id="inputID", property="type")),
7575
function(x, y) {
7676
sprintf("You've entered: '%s' into a '%s' input control", x, y)
7777
}
@@ -90,8 +90,8 @@ app <- Dash$new()
9090
app$layout(
9191
htmlDiv(
9292
list(
93-
dccInput(id = "graphTitle",
94-
value = "Let's Dance!",
93+
dccInput(id = "graphTitle",
94+
value = "Let's Dance!",
9595
type = "text"),
9696
htmlDiv(id = "outputID"),
9797
dccGraph(id = "giraffe",
@@ -104,46 +104,46 @@ app$layout(
104104
)
105105
)
106106

107-
app$callback(output = list(id = "giraffe", property = "figure"),
108-
params = list(input("graphTitle", "value")),
107+
app$callback(output = list(id = "giraffe", property = "figure"),
108+
params = list(input("graphTitle", "value")),
109109
function(newTitle) {
110-
110+
111111
rand1 <- sample(1:10, 1)
112-
112+
113113
rand2 <- sample(1:10, 1)
114114
rand3 <- sample(1:10, 1)
115115
rand4 <- sample(1:10, 1)
116-
116+
117117
x <- c(1,2,3)
118118
y <- c(3,6,rand1)
119119
y2 <- c(rand2,rand3,rand4)
120-
120+
121121
df = data.frame(x, y, y2)
122-
122+
123123
list(
124-
data =
125-
list(
124+
data =
125+
list(
126126
list(
127-
x = df$x,
128-
y = df$y,
127+
x = df$x,
128+
y = df$y,
129129
type = "bar"
130130
),
131131
list(
132-
x = df$x,
133-
y = df$y2,
132+
x = df$x,
133+
y = df$y2,
134134
type = "scatter",
135135
mode = "lines+markers",
136136
line = list(width = 4)
137-
)
137+
)
138138
),
139139
layout = list(title = newTitle)
140140
)
141141
}
142142
)
143143

144-
app$callback(output = list(id = "outputID", property = "children"),
144+
app$callback(output = list(id = "outputID", property = "children"),
145145
params = list(input("graphTitle", "value"),
146-
state("graphTitle", "type")),
146+
state("graphTitle", "type")),
147147
function(x, y) {
148148
sprintf("You've entered: '%s' into a '%s' input control", x, y)
149149
}

0 commit comments

Comments
 (0)