aboutsummaryrefslogtreecommitdiffstats
path: root/R/intex_deal_functions.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/intex_deal_functions.R')
-rw-r--r--R/intex_deal_functions.R10
1 files changed, 2 insertions, 8 deletions
diff --git a/R/intex_deal_functions.R b/R/intex_deal_functions.R
index 524ca36e..f9167b0e 100644
--- a/R/intex_deal_functions.R
+++ b/R/intex_deal_functions.R
@@ -12,14 +12,8 @@ if(hostname=="debian"){
registerDoParallel(4)
}
-if(.Platform$OS.type == "unix"){
- root.dir <- "/home/share/CorpCDOs/"
-}else{
- root.dir <- "//WDSENTINEL/share/CorpCDOs/"
-}
-
-source(file.path(root.dir, "code", "R", "cds_functions_generic.R"))
-source(file.path(root.dir, "code", "R", "etdb.R"))
+source("cds_functions_generic.R")
+source("etdb.R")
getdealdata <- function(dealname, workdate){
sqlstring <- paste0("select marketvalue from et_deal_model_numbers where dealname='%s' and ",