forked from DATAUNIRIO/trade_intel_dashboard_public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
integrate.r
34 lines (27 loc) · 1.08 KB
/
integrate.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#######################################################################
# #
# #
# Exoport and Import Dashboard #
# #
# #
#######################################################################
## --- Shiny app deployment ---------------
###########
## shiny ##
###########
library(shiny)
library(rsconnect)
library(packrat)
options(browser = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe")
## Relative path to the shiny app directory
shinydir = "shiny"
## If deploysuffix = NULL, shiny app is not deployed
deploysuffix = "test"
# deploysuffix = "prod"
# deploysuffix = NULL
## ----- test locally ------
runApp('shiny')
### -------- deploy ---------
deployApp(appDir = shinydir,
appName = paste0("trade_intelligence_", deploysuffix),
account = "XXXXXX")