aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--R/calibrate_tranches_BC.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/calibrate_tranches_BC.R b/R/calibrate_tranches_BC.R
index 49c35f85..e5ca61e3 100644
--- a/R/calibrate_tranches_BC.R
+++ b/R/calibrate_tranches_BC.R
@@ -3,9 +3,9 @@ code.dir <- Sys.getenv("CODE_DIR")
tranchedata.dir <- file.path(Sys.getenv("DATA_DIR"), "..", "Tranche_data")
library(logging)
basicConfig()
-removeHandler('basic.stdout')
-addHandler(writeToFile, file=file.path(Sys.getenv("LOG_DIR"), "calibrate_tranches_BC.log"))
if(!interactive()){
+ removeHandler('basic.stdout')
+ addHandler(writeToFile, file=file.path(Sys.getenv("LOG_DIR"), "calibrate_tranches_BC.log"))
library(optparse)
option_list <- list(
make_option(c("-u", "--update"), action="store_true", default=FALSE,