aboutsummaryrefslogtreecommitdiffstats
path: root/R/thetas-durations.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/thetas-durations.R')
-rw-r--r--R/thetas-durations.R8
1 files changed, 3 insertions, 5 deletions
diff --git a/R/thetas-durations.R b/R/thetas-durations.R
index f542358f..e4ea3110 100644
--- a/R/thetas-durations.R
+++ b/R/thetas-durations.R
@@ -4,14 +4,12 @@ library(doParallel)
library(dplyr)
library(tidyr)
-code.dir <- Sys.getenv("CODE_DIR")
-
hostname <- system("hostname", intern=TRUE)
registerDoParallel(if(hostname=="debian") 4 else 8)
-source(file.path(code.dir, "R", "serenitasdb.R"))
-source(file.path(code.dir, "R", "cds_functions_generic.R"))
-source(file.path(code.dir, "R", "yieldcurve.R"))
+source("serenitasdb.R")
+source("cds_functions_generic.R")
+source("yieldcurve.R")
get.indexquotes.table <- function(indextype, series, tenors=c("3yr", "5yr", "7yr"),
onlymissing=TRUE) {