[Blotter-commits] r833 - pkg/FinancialInstrument/sandbox

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Nov 5 14:59:21 CET 2011


Author: braverock
Date: 2011-11-05 14:59:21 +0100 (Sat, 05 Nov 2011)
New Revision: 833

Modified:
   pkg/FinancialInstrument/sandbox/TRTH_BackFill.R
Log:
- always load the instruments environment

Modified: pkg/FinancialInstrument/sandbox/TRTH_BackFill.R
===================================================================
--- pkg/FinancialInstrument/sandbox/TRTH_BackFill.R	2011-11-05 01:22:25 UTC (rev 832)
+++ pkg/FinancialInstrument/sandbox/TRTH_BackFill.R	2011-11-05 13:59:21 UTC (rev 833)
@@ -1,5 +1,5 @@
 ##############################################################################
-#                     Reuters Backfill Configuration Parameters              #         
+#                  Reuters Backfill Configuration Parameters                 #         
 ##############################################################################
 #
 # You should create a configuration file that includes the following
@@ -22,9 +22,11 @@
 #
 #no.cores <- 1 # for foreach
 ##############################################################################
-config_file<-'/full/path/to/TRTH_config_file.R'
+config_file<-'TRTH_config_file.R'
 source(config_file)
 
+load(instrument_file)
+
 Sys.umask("0002")
 
 options(width=200)
@@ -55,7 +57,7 @@
     {
         tmpmsg<-paste("curl returned error code", names(w),'\n','while attempting to download file list','\n','script will wait and retry in 30 min')
         #sendmail(email_to,email_from,"error downloading Reuters file list",msg=tmpmsg)
-        Sys.sleep(1800)
+        Sys.sleep(180)
     } else listflag=TRUE
     
 }



More information about the Blotter-commits mailing list