forked from STAT547-UBC-2019-20/group_01_dlin_njamshidi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_dash.R
23 lines (16 loc) · 854 Bytes
/
check_dash.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Script to check Dash installation
library(testthat)
expect_equal(as.character(packageVersion('plotly')),'4.9.2',
info="Please update or install `plotly` to v4.9.2 or newer")
expect_equal(as.character(packageVersion('dash')),'0.3.1',
info="Please update or install `dash` to v0.3.1 or newer")
expect_equal(as.character(packageVersion('dashCoreComponents')),'1.8.0',
info="Please update or install `dashCoreComponents` to v1.8.0 or newer")
expect_equal(as.character(packageVersion('dashHtmlComponents')),'1.0.2',
info="Please update or install `dashHtmlComponents` to v1.0.2 or newer` ",
)
library(plotly)
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)
print('Congratulations! You have successfully installed and loaded all required packages and libraries. You are ready to create Dash apps!')