aboutsummaryrefslogtreecommitdiffstats
path: root/R/creditIndex.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/creditIndex.R')
-rw-r--r--R/creditIndex.R6
1 files changed, 1 insertions, 5 deletions
diff --git a/R/creditIndex.R b/R/creditIndex.R
index 3788b2a2..7d8859a3 100644
--- a/R/creditIndex.R
+++ b/R/creditIndex.R
@@ -1,8 +1,4 @@
-root.dir <- if(Sys.getenv("DATA_DIR") == ""){
- "/home/serenitas/CorpCDOs"
-}else{
- file.path(Sys.getenv("DATA_DIR"), "..")
-}
+stopifnot((root.dir <- Sys.getenv("BASE_DIR")) != "")
library(lossdistrib)
n.int <- 250