Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Updated R package vignettes and yaml #972

Merged
merged 4 commits into from
Jun 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lib/
.prettierrc
.circleci
.github
.build_cache

# demo folder has special meaning in R
# this should hopefully make it still
Expand Down
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed

- [#963](https://github.com/plotly/dash-core-components/pull/963) Fixes [#885](https://github.com/plotly/dash-core-components/issues/885)
This applies the fix from [#878](https://github.com/plotly/dash-core-components/pull/878) to the RangeSlider.
It not only fixes the bug where the tooltips were visible when slider was not, but it also reduces the lag in the

This applies the fix from [#878](https://github.com/plotly/dash-core-components/pull/878) to the RangeSlider.
It not only fixes the bug where the tooltips were visible when slider was not, but it also reduces the lag in the
tooltip when the slider handles are moved.

### Added
- [#932](https://github.com/plotly/dash-core-components/pull/932). Adds a new copy to clipboard component.
- [#948](https://github.com/plotly/dash-core-components/pull/948)] Adds `disabled_days` prop to `DatePickerRange` and `DatePickerSingle` components. With this prop you can specify days that should be made unselectable in the date picker, in addition to those that fall outside of the range specified by `min_date_allowed` and `max_date_allowed`.

### Changed
- [#972](https://github.com/plotly/dash-core-components/pull/972) Updated R package vignettes and `dash-info.yaml` to regenerate examples without attaching now-deprecated core component packages (`dashHtmlComponents`, `dashCoreComponents`, or `dashTable`).

## [1.16.0] - 2021-04-08
### Added
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ export(dccTab)
export(dccTabs)
export(dccTextarea)
export(dccUpload)
export(dccTimer)
export(dccGeolocation)
Comment on lines -27 to -28
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess these are in development (e.g. #962), but removed from the NAMESPACE because they haven't been merged to dev yet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe so. I'm not sure why those are in the NAMESPACE to begin with since they're not included in the dev branch yet, but I think it's safe to remove them for now until they're added back with the merge of that PR.

97 changes: 29 additions & 68 deletions dash-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ r_examples:
- name: dccChecklist
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)
Comment on lines -19 to -20
Copy link
Contributor

Choose a reason for hiding this comment

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

🔪 ✨


app <- Dash$new()

Expand All @@ -38,10 +36,8 @@ r_examples:
- name: dccInterval
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)
library(plotly)

app <- Dash$new()
Expand Down Expand Up @@ -89,10 +85,8 @@ r_examples:
- name: dccSlider
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app <- Dash$new()

Expand Down Expand Up @@ -127,10 +121,8 @@ r_examples:
- name: dccConfirmDialog
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app <- Dash$new()

Expand Down Expand Up @@ -164,10 +156,8 @@ r_examples:
- name: dccLink
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app <- Dash$new()

Expand Down Expand Up @@ -196,9 +186,7 @@ r_examples:
- name: dccStore
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
library(dashCoreComponents)
library(dashHtmlComponents)
if (interactive()) {
library(dash)

app <- Dash$new()
Expand Down Expand Up @@ -285,26 +273,24 @@ r_examples:
- name: dccConfirmDialogProvider
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app <- Dash$new()

app$layout(htmlDiv(list(
dccConfirmDialogProvider(
children=htmlButton(
'Click Me',
n_clicks = 0
),
n_clicks = 0
),
id='danger-danger-provider',
message='Danger danger! Are you sure you want to continue?',
submit_n_clicks=NULL
),
),
htmlDiv(id='output-provider',
children='Click the button to submit')
)))
)))

app$callback(
output = list(id = 'output-provider', property = 'children'),
Expand All @@ -314,20 +300,18 @@ r_examples:
return('')
} else {
paste0('That was a dangerous choice! Submitted ', submit_n_clicks, ' times.')
}
}
}
}

)
)

app$run_server()
}
- name: dccLoading
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app <- Dash$new()

Expand Down Expand Up @@ -372,10 +356,8 @@ r_examples:
- name: dccTab
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app <- Dash$new()

Expand Down Expand Up @@ -409,9 +391,8 @@ r_examples:
- name: dccDatePickerRange
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)

app <- Dash$new()

Expand All @@ -428,10 +409,8 @@ r_examples:
- name: dccLocation
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app <- Dash$new()

Expand Down Expand Up @@ -462,10 +441,8 @@ r_examples:
- name: dccTabs
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

app <- Dash$new()

Expand Down Expand Up @@ -499,9 +476,8 @@ r_examples:
- name: dccDatePickerSingle
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)

app <- Dash$new()

Expand All @@ -517,9 +493,8 @@ r_examples:
- name: dccLogoutButton
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)

app <- Dash$new()

Expand All @@ -532,9 +507,8 @@ r_examples:
- name: dccTextarea
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)

app <- Dash$new()

Expand All @@ -552,9 +526,8 @@ r_examples:
- name: dccDropdown
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)

app <- Dash$new()

Expand All @@ -576,10 +549,8 @@ r_examples:
- name: dccMarkdown
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)

app <- Dash$new()

Expand All @@ -595,7 +566,6 @@ r_examples:
dccMarkdown(children = "
```r
library(dash)
library(dashHtmlComponents)

app <- Dash$new()
app$layout(htmlDiv('Dash app code wrapped within an app'))
Expand All @@ -610,10 +580,8 @@ r_examples:
- name: dccUpload
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)
library(jsonlite)

app <- Dash$new()
Expand Down Expand Up @@ -677,9 +645,8 @@ r_examples:
- name: dccGraph
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashCoreComponents)
library(plotly)
app <- Dash$new()

Expand Down Expand Up @@ -725,10 +692,8 @@ r_examples:
- name: dccRadioItems
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)

app <- Dash$new()

Expand All @@ -750,10 +715,8 @@ r_examples:
- name: dccInput
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)

app <- Dash$new()

Expand All @@ -772,10 +735,8 @@ r_examples:
- name: dccRangeSlider
dontrun: FALSE
code: |
if (interactive() && require(dash)) {
if (interactive()) {
library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)

app <- Dash$new()

Expand Down
Loading