Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 72875fc

Browse files
HammadTheOnerpkyle
andauthored
Updated R package vignettes and yaml (#972)
* Updated Dash R vignettes and yaml * Updated CHANGELOG * Update CHANGELOG.md Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com> Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
1 parent 90f1e6a commit 72875fc

File tree

6 files changed

+1453
-1294
lines changed

6 files changed

+1453
-1294
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ lib/
1212
.prettierrc
1313
.circleci
1414
.github
15+
.build_cache
1516

1617
# demo folder has special meaning in R
1718
# this should hopefully make it still

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
88
### Fixed
99

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

1616
### Added
1717
- [#932](https://github.com/plotly/dash-core-components/pull/932). Adds a new copy to clipboard component.
1818
- [#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`.
1919

20+
### Changed
21+
- [#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`).
2022

2123
## [1.16.0] - 2021-04-08
2224
### Added

NAMESPACE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,3 @@ export(dccTab)
2424
export(dccTabs)
2525
export(dccTextarea)
2626
export(dccUpload)
27-
export(dccTimer)
28-
export(dccGeolocation)

dash-info.yaml

Lines changed: 29 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ r_examples:
1414
- name: dccChecklist
1515
dontrun: FALSE
1616
code: |
17-
if (interactive() && require(dash)) {
17+
if (interactive()) {
1818
library(dash)
19-
library(dashHtmlComponents)
20-
library(dashCoreComponents)
2119
2220
app <- Dash$new()
2321
@@ -38,10 +36,8 @@ r_examples:
3836
- name: dccInterval
3937
dontrun: FALSE
4038
code: |
41-
if (interactive() && require(dash)) {
39+
if (interactive()) {
4240
library(dash)
43-
library(dashHtmlComponents)
44-
library(dashCoreComponents)
4541
library(plotly)
4642
4743
app <- Dash$new()
@@ -89,10 +85,8 @@ r_examples:
8985
- name: dccSlider
9086
dontrun: FALSE
9187
code: |
92-
if (interactive() && require(dash)) {
88+
if (interactive()) {
9389
library(dash)
94-
library(dashCoreComponents)
95-
library(dashHtmlComponents)
9690
9791
app <- Dash$new()
9892
@@ -127,10 +121,8 @@ r_examples:
127121
- name: dccConfirmDialog
128122
dontrun: FALSE
129123
code: |
130-
if (interactive() && require(dash)) {
124+
if (interactive()) {
131125
library(dash)
132-
library(dashCoreComponents)
133-
library(dashHtmlComponents)
134126
135127
app <- Dash$new()
136128
@@ -164,10 +156,8 @@ r_examples:
164156
- name: dccLink
165157
dontrun: FALSE
166158
code: |
167-
if (interactive() && require(dash)) {
159+
if (interactive()) {
168160
library(dash)
169-
library(dashCoreComponents)
170-
library(dashHtmlComponents)
171161
172162
app <- Dash$new()
173163
@@ -196,9 +186,7 @@ r_examples:
196186
- name: dccStore
197187
dontrun: FALSE
198188
code: |
199-
if (interactive() && require(dash)) {
200-
library(dashCoreComponents)
201-
library(dashHtmlComponents)
189+
if (interactive()) {
202190
library(dash)
203191
204192
app <- Dash$new()
@@ -285,26 +273,24 @@ r_examples:
285273
- name: dccConfirmDialogProvider
286274
dontrun: FALSE
287275
code: |
288-
if (interactive() && require(dash)) {
276+
if (interactive()) {
289277
library(dash)
290-
library(dashCoreComponents)
291-
library(dashHtmlComponents)
292278
293279
app <- Dash$new()
294280
295281
app$layout(htmlDiv(list(
296282
dccConfirmDialogProvider(
297283
children=htmlButton(
298284
'Click Me',
299-
n_clicks = 0
300-
),
285+
n_clicks = 0
286+
),
301287
id='danger-danger-provider',
302288
message='Danger danger! Are you sure you want to continue?',
303289
submit_n_clicks=NULL
304-
),
290+
),
305291
htmlDiv(id='output-provider',
306292
children='Click the button to submit')
307-
)))
293+
)))
308294
309295
app$callback(
310296
output = list(id = 'output-provider', property = 'children'),
@@ -314,20 +300,18 @@ r_examples:
314300
return('')
315301
} else {
316302
paste0('That was a dangerous choice! Submitted ', submit_n_clicks, ' times.')
317-
}
318-
}
303+
}
304+
}
319305
320-
)
306+
)
321307
322308
app$run_server()
323309
}
324310
- name: dccLoading
325311
dontrun: FALSE
326312
code: |
327-
if (interactive() && require(dash)) {
313+
if (interactive()) {
328314
library(dash)
329-
library(dashCoreComponents)
330-
library(dashHtmlComponents)
331315
332316
app <- Dash$new()
333317
@@ -372,10 +356,8 @@ r_examples:
372356
- name: dccTab
373357
dontrun: FALSE
374358
code: |
375-
if (interactive() && require(dash)) {
359+
if (interactive()) {
376360
library(dash)
377-
library(dashCoreComponents)
378-
library(dashHtmlComponents)
379361
380362
app <- Dash$new()
381363
@@ -409,9 +391,8 @@ r_examples:
409391
- name: dccDatePickerRange
410392
dontrun: FALSE
411393
code: |
412-
if (interactive() && require(dash)) {
394+
if (interactive()) {
413395
library(dash)
414-
library(dashCoreComponents)
415396
416397
app <- Dash$new()
417398
@@ -428,10 +409,8 @@ r_examples:
428409
- name: dccLocation
429410
dontrun: FALSE
430411
code: |
431-
if (interactive() && require(dash)) {
412+
if (interactive()) {
432413
library(dash)
433-
library(dashCoreComponents)
434-
library(dashHtmlComponents)
435414
436415
app <- Dash$new()
437416
@@ -462,10 +441,8 @@ r_examples:
462441
- name: dccTabs
463442
dontrun: FALSE
464443
code: |
465-
if (interactive() && require(dash)) {
444+
if (interactive()) {
466445
library(dash)
467-
library(dashCoreComponents)
468-
library(dashHtmlComponents)
469446
470447
app <- Dash$new()
471448
@@ -499,9 +476,8 @@ r_examples:
499476
- name: dccDatePickerSingle
500477
dontrun: FALSE
501478
code: |
502-
if (interactive() && require(dash)) {
479+
if (interactive()) {
503480
library(dash)
504-
library(dashCoreComponents)
505481
506482
app <- Dash$new()
507483
@@ -517,9 +493,8 @@ r_examples:
517493
- name: dccLogoutButton
518494
dontrun: FALSE
519495
code: |
520-
if (interactive() && require(dash)) {
496+
if (interactive()) {
521497
library(dash)
522-
library(dashCoreComponents)
523498
524499
app <- Dash$new()
525500
@@ -532,9 +507,8 @@ r_examples:
532507
- name: dccTextarea
533508
dontrun: FALSE
534509
code: |
535-
if (interactive() && require(dash)) {
510+
if (interactive()) {
536511
library(dash)
537-
library(dashCoreComponents)
538512
539513
app <- Dash$new()
540514
@@ -552,9 +526,8 @@ r_examples:
552526
- name: dccDropdown
553527
dontrun: FALSE
554528
code: |
555-
if (interactive() && require(dash)) {
529+
if (interactive()) {
556530
library(dash)
557-
library(dashCoreComponents)
558531
559532
app <- Dash$new()
560533
@@ -576,10 +549,8 @@ r_examples:
576549
- name: dccMarkdown
577550
dontrun: FALSE
578551
code: |
579-
if (interactive() && require(dash)) {
552+
if (interactive()) {
580553
library(dash)
581-
library(dashHtmlComponents)
582-
library(dashCoreComponents)
583554
584555
app <- Dash$new()
585556
@@ -595,7 +566,6 @@ r_examples:
595566
dccMarkdown(children = "
596567
```r
597568
library(dash)
598-
library(dashHtmlComponents)
599569
600570
app <- Dash$new()
601571
app$layout(htmlDiv('Dash app code wrapped within an app'))
@@ -610,10 +580,8 @@ r_examples:
610580
- name: dccUpload
611581
dontrun: FALSE
612582
code: |
613-
if (interactive() && require(dash)) {
583+
if (interactive()) {
614584
library(dash)
615-
library(dashCoreComponents)
616-
library(dashHtmlComponents)
617585
library(jsonlite)
618586
619587
app <- Dash$new()
@@ -677,9 +645,8 @@ r_examples:
677645
- name: dccGraph
678646
dontrun: FALSE
679647
code: |
680-
if (interactive() && require(dash)) {
648+
if (interactive()) {
681649
library(dash)
682-
library(dashCoreComponents)
683650
library(plotly)
684651
app <- Dash$new()
685652
@@ -725,10 +692,8 @@ r_examples:
725692
- name: dccRadioItems
726693
dontrun: FALSE
727694
code: |
728-
if (interactive() && require(dash)) {
695+
if (interactive()) {
729696
library(dash)
730-
library(dashHtmlComponents)
731-
library(dashCoreComponents)
732697
733698
app <- Dash$new()
734699
@@ -750,10 +715,8 @@ r_examples:
750715
- name: dccInput
751716
dontrun: FALSE
752717
code: |
753-
if (interactive() && require(dash)) {
718+
if (interactive()) {
754719
library(dash)
755-
library(dashHtmlComponents)
756-
library(dashCoreComponents)
757720
758721
app <- Dash$new()
759722
@@ -772,10 +735,8 @@ r_examples:
772735
- name: dccRangeSlider
773736
dontrun: FALSE
774737
code: |
775-
if (interactive() && require(dash)) {
738+
if (interactive()) {
776739
library(dash)
777-
library(dashHtmlComponents)
778-
library(dashCoreComponents)
779740
780741
app <- Dash$new()
781742

0 commit comments

Comments
 (0)