@@ -14,7 +14,7 @@ r_examples:
14
14
- name : dccChecklist
15
15
dontrun : FALSE
16
16
code : |
17
- if (interactive()) {
17
+ if (interactive() && require(dash) ) {
18
18
library(dash)
19
19
library(dashHtmlComponents)
20
20
library(dashCoreComponents)
@@ -38,7 +38,7 @@ r_examples:
38
38
- name : dccInterval
39
39
dontrun : FALSE
40
40
code : |
41
- if (interactive()) {
41
+ if (interactive() && require(dash) ) {
42
42
library(dash)
43
43
library(dashHtmlComponents)
44
44
library(dashCoreComponents)
@@ -89,7 +89,7 @@ r_examples:
89
89
- name : dccSlider
90
90
dontrun : FALSE
91
91
code : |
92
- if (interactive()) {
92
+ if (interactive() && require(dash) ) {
93
93
library(dash)
94
94
library(dashCoreComponents)
95
95
library(dashHtmlComponents)
@@ -127,7 +127,7 @@ r_examples:
127
127
- name : dccConfirmDialog
128
128
dontrun : FALSE
129
129
code : |
130
- if (interactive()) {
130
+ if (interactive() && require(dash) ) {
131
131
library(dash)
132
132
library(dashCoreComponents)
133
133
library(dashHtmlComponents)
@@ -164,7 +164,7 @@ r_examples:
164
164
- name : dccLink
165
165
dontrun : FALSE
166
166
code : |
167
- if (interactive()) {
167
+ if (interactive() && require(dash) ) {
168
168
library(dash)
169
169
library(dashCoreComponents)
170
170
library(dashHtmlComponents)
@@ -196,7 +196,7 @@ r_examples:
196
196
- name : dccStore
197
197
dontrun : FALSE
198
198
code : |
199
- if (interactive()) {
199
+ if (interactive() && require(dash) ) {
200
200
library(dashCoreComponents)
201
201
library(dashHtmlComponents)
202
202
library(dash)
@@ -241,7 +241,7 @@ r_examples:
241
241
app$callback(
242
242
output(id = i, property = 'data'),
243
243
params = list(
244
- input(id = sprintf('%s -button', i ), property = 'n_clicks'),
244
+ input(id = paste0(i, ' -button'), property = 'n_clicks'),
245
245
state(id = i, property = 'data')
246
246
),
247
247
function(n_clicks, data){
@@ -261,7 +261,7 @@ r_examples:
261
261
262
262
for (i in c('memory', 'local', 'session')) {
263
263
app$callback(
264
- output(id = sprintf('%s -clicks', i ), property = 'children'),
264
+ output(id = paste0(i, ' -clicks'), property = 'children'),
265
265
params = list(
266
266
input(id = i, property = 'modified_timestamp'),
267
267
state(id = i, property = 'data')
@@ -285,7 +285,7 @@ r_examples:
285
285
- name : dccConfirmDialogProvider
286
286
dontrun : FALSE
287
287
code : |
288
- if (interactive()) {
288
+ if (interactive() && require(dash) ) {
289
289
library(dash)
290
290
library(dashCoreComponents)
291
291
library(dashHtmlComponents)
@@ -324,7 +324,7 @@ r_examples:
324
324
- name : dccLoading
325
325
dontrun : FALSE
326
326
code : |
327
- if (interactive()) {
327
+ if (interactive() && require(dash) ) {
328
328
library(dash)
329
329
library(dashCoreComponents)
330
330
library(dashHtmlComponents)
@@ -372,7 +372,7 @@ r_examples:
372
372
- name : dccTab
373
373
dontrun : FALSE
374
374
code : |
375
- if (interactive()) {
375
+ if (interactive() && require(dash) ) {
376
376
library(dash)
377
377
library(dashCoreComponents)
378
378
library(dashHtmlComponents)
@@ -409,7 +409,7 @@ r_examples:
409
409
- name : dccDatePickerRange
410
410
dontrun : FALSE
411
411
code : |
412
- if (interactive()) {
412
+ if (interactive() && require(dash) ) {
413
413
library(dash)
414
414
library(dashCoreComponents)
415
415
@@ -428,7 +428,7 @@ r_examples:
428
428
- name : dccLocation
429
429
dontrun : FALSE
430
430
code : |
431
- if (interactive()) {
431
+ if (interactive() && require(dash) ) {
432
432
library(dash)
433
433
library(dashCoreComponents)
434
434
library(dashHtmlComponents)
@@ -462,7 +462,7 @@ r_examples:
462
462
- name : dccTabs
463
463
dontrun : FALSE
464
464
code : |
465
- if (interactive()) {
465
+ if (interactive() && require(dash) ) {
466
466
library(dash)
467
467
library(dashCoreComponents)
468
468
library(dashHtmlComponents)
@@ -499,7 +499,7 @@ r_examples:
499
499
- name : dccDatePickerSingle
500
500
dontrun : FALSE
501
501
code : |
502
- if (interactive()) {
502
+ if (interactive() && require(dash) ) {
503
503
library(dash)
504
504
library(dashCoreComponents)
505
505
@@ -517,7 +517,7 @@ r_examples:
517
517
- name : dccLogoutButton
518
518
dontrun : FALSE
519
519
code : |
520
- if (interactive()) {
520
+ if (interactive() && require(dash) ) {
521
521
library(dash)
522
522
library(dashCoreComponents)
523
523
@@ -532,7 +532,7 @@ r_examples:
532
532
- name : dccTextarea
533
533
dontrun : FALSE
534
534
code : |
535
- if (interactive()) {
535
+ if (interactive() && require(dash) ) {
536
536
library(dash)
537
537
library(dashCoreComponents)
538
538
@@ -552,7 +552,7 @@ r_examples:
552
552
- name : dccDropdown
553
553
dontrun : FALSE
554
554
code : |
555
- if (interactive()) {
555
+ if (interactive() && require(dash) ) {
556
556
library(dash)
557
557
library(dashCoreComponents)
558
558
@@ -576,7 +576,7 @@ r_examples:
576
576
- name : dccMarkdown
577
577
dontrun : FALSE
578
578
code : |
579
- if (interactive()) {
579
+ if (interactive() && require(dash) ) {
580
580
library(dash)
581
581
library(dashHtmlComponents)
582
582
library(dashCoreComponents)
@@ -610,7 +610,7 @@ r_examples:
610
610
- name : dccUpload
611
611
dontrun : FALSE
612
612
code : |
613
- if (interactive()) {
613
+ if (interactive() && require(dash) ) {
614
614
library(dash)
615
615
library(dashCoreComponents)
616
616
library(dashHtmlComponents)
@@ -677,7 +677,7 @@ r_examples:
677
677
- name : dccGraph
678
678
dontrun : FALSE
679
679
code : |
680
- if (interactive()) {
680
+ if (interactive() && require(dash) ) {
681
681
library(dash)
682
682
library(dashCoreComponents)
683
683
library(plotly)
@@ -725,7 +725,7 @@ r_examples:
725
725
- name : dccRadioItems
726
726
dontrun : FALSE
727
727
code : |
728
- if (interactive()) {
728
+ if (interactive() && require(dash) ) {
729
729
library(dash)
730
730
library(dashHtmlComponents)
731
731
library(dashCoreComponents)
@@ -750,7 +750,7 @@ r_examples:
750
750
- name : dccInput
751
751
dontrun : FALSE
752
752
code : |
753
- if (interactive()) {
753
+ if (interactive() && require(dash) ) {
754
754
library(dash)
755
755
library(dashHtmlComponents)
756
756
library(dashCoreComponents)
@@ -772,7 +772,7 @@ r_examples:
772
772
- name : dccRangeSlider
773
773
dontrun : FALSE
774
774
code : |
775
- if (interactive()) {
775
+ if (interactive() && require(dash) ) {
776
776
library(dash)
777
777
library(dashHtmlComponents)
778
778
library(dashCoreComponents)
0 commit comments