-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDDCV.R
32 lines (25 loc) · 845 Bytes
/
DDCV.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
## Function to check whether package is installed
is.installed <- function(mypkg) {
tmp <- is.element(mypkg,installed.packages()[,1])
if(!tmp){ install.packages(mypkg)}
}
is.installed.github <- function(mypkg,gsource) {
tmp <- is.element(mypkg,installed.packages()[,1])
if(!tmp){ devtools::install_github(mypkg,gsource)}
}
## check if package is installed
is.installed("devtools")
is.installed("shiny")
is.installed("ggplot2")
is.installed("gplots")
is.installed("reshape2")
is.installed("lattice")
is.installed("plyr")
is.installed("scatterplot3d")
is.installed("shinythemes")
#is.installed.github("shiny-incubator", "rstudio")
## Run shiny
library(shiny)
runApp("../DDCV_2.0/")
### if you get error with runGist, try the following command ###
#options(download.file.method="wget",download.file.extra=" --no-check-certificate")