-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig.R
executable file
·68 lines (47 loc) · 2.25 KB
/
config.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# source from 'server.R' and 'ui.R'
# save as 'config.R'
# configuration file
# Store variable in config
config <- list()
# Version
config$version <- "1.0.0"
# Working directory -------------------------------------------------------
# This is the absolute path to server.R, ui.R and config.R
# It's the working directory of app
# DEFAULT getwd()
# config$wd <- "/project/huff/huff/github/GSCALite"
config$wd <- "/home/liucj/web/GSCALite"
# config$wd <- "/home/zhangq/github/GSCALite"
# User directory ----------------------------------------------------------
# This controls the unique directory,
# which is set for every user at the beginning of a session is created.
# usually this is a directory with a hashed name in temporary directory
# But for debugging it might be handy to have it in the working directory
# config$user_dir <- "WD"
# Database ----------------------------------------------------------------
# This contains the TCGA, GTEx and Drug data
config$database <- "/home/liucj/shiny-data/GSCALite"
# Path bins ---------------------------------------------------------------
config$bins <- "bins"
# Path functions ----------------------------------------------------------
config$functions <- "functions"
# Path logs ---------------------------------------------------------------
config$logs <- "logs"
# Path scripts ------------------------------------------------------------
config$scripts <- "scripts"
# Path server -------------------------------------------------------------
config$server <- "server"
# Path ui -----------------------------------------------------------------
config$ui <- "ui"
# Path user data ----------------------------------------------------------
config$userdata <- "userdata"
# Paths -------------------------------------------------------------------
config$bins <- file.path(config$wd, config$bins)
config$functions <- file.path(config$wd, config$functions)
config$logs <- file.path(config$wd, config$logs)
config$scripts <- file.path(config$wd, config$scripts)
config$server <- file.path(config$wd, config$server)
config$ui <- file.path(config$wd, config$ui)
config$userdata <- file.path(config$wd, config$userdata)
# Path to zip -------------------------------------------------------------
Sys.setenv("R_ZIPCMD" = "/usr/bin/zip")