diff options
| -rw-r--r-- | R/build_portfolios.R | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/R/build_portfolios.R b/R/build_portfolios.R index 00d65321..6697ca22 100644 --- a/R/build_portfolios.R +++ b/R/build_portfolios.R @@ -8,12 +8,12 @@ if(.Platform$OS.type == "unix"){ }else{ root.dir <- "//WDSENTINEL/share/CorpCDOs" } -code.dir <- if(Sys.getenv("CODE_DIR")=="") root.dir else Sys.getenv("CODE_DIR") +code.dir <- if(Sys.getenv("CODE_DIR")=="") file.path(root.dir, "code") else Sys.getenv("CODE_DIR") -source(file.path(code.dir, "code", "R", "intex_deal_functions.R"), chdir=TRUE) -source(file.path(code.dir, "code", "R", "yieldcurve.R")) -source(file.path(code.dir, "code", "R", "serenitasdb.R"), chdir=TRUE) -source(file.path(code.dir, "code", "R", "creditIndex.R")) +source(file.path(code.dir, "R", "intex_deal_functions.R"), chdir=TRUE) +source(file.path(code.dir, "R", "yieldcurve.R")) +source(file.path(code.dir, "R", "serenitasdb.R"), chdir=TRUE) +source(file.path(code.dir, "R", "creditIndex.R")) if(interactive()) { ## enter the parameters here |
