-
Notifications
You must be signed in to change notification settings - Fork 0
/
shiny.R
34 lines (25 loc) · 913 Bytes
/
shiny.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
34
## Before:
## After:
library(icesTAF)
# create all folders
mkdir("shiny")
mkdir("shiny/data")
# copy in www data
cp(taf.data.path("www"), "shiny")
# need to move css and js code out of here I think
# and clean up - lots of excess files in here
# copy in server data
#cp(taf.data.path("tafstocks.csv"), "shiny/data")
cp("data/map_data.RData", "shiny/data")
# copy in utilities
cp("utilities_webservices.R", "shiny/utilities_webservices.R")
cp("utilities_login.R", "shiny/utilities_login.R")
cp("utilities.R", "shiny/utilities.R")
# copy in server and ui scripts
cp("shiny_ui.R", "shiny/ui.R")
cp("shiny_server.R", "shiny/server.R")
# copy in modules' scripts
cp("shiny_mod_map_selector.R", "shiny/mod_map_selector.R")
cp("shiny_mod_file_tree.R", "shiny/mod_file_tree.R")
cp("shiny_mod_file_viz.R", "shiny/mod_file_viz.R")
msg("Created shiny app. To run, use: \n\n\tlibrary(shiny)\n\trunApp('shiny')\n\n")