[Blotter-commits] r935 - pkg/FinancialInstrument/inst/parser

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Feb 21 23:15:43 CET 2012


Author: gsee
Date: 2012-02-21 23:15:43 +0100 (Tue, 21 Feb 2012)
New Revision: 935

Modified:
   pkg/FinancialInstrument/inst/parser/TRTH_BackFill.R
Log:
 move creation of base tmp directory outside of if block

Modified: pkg/FinancialInstrument/inst/parser/TRTH_BackFill.R
===================================================================
--- pkg/FinancialInstrument/inst/parser/TRTH_BackFill.R	2012-02-21 22:09:47 UTC (rev 934)
+++ pkg/FinancialInstrument/inst/parser/TRTH_BackFill.R	2012-02-21 22:15:43 UTC (rev 935)
@@ -192,10 +192,11 @@
 
     assign('.TRTH', .TRTH, pos=.GlobalEnv)
 
+    .TRTH$tmp <- path.expand(paste(addslash(.TRTH$path.output), "tmp", sep=""))
+    makeDir(.TRTH$tmp)
+
     if (Sys.getenv("TMPDIR") == "") {
         # Set the TMPDIR environment variable (requires restarting R)
-        .TRTH$tmp <- path.expand(paste(addslash(.TRTH$path.output), "tmp", sep=""))
-        makeDir(.TRTH$tmp)
         wd <- getwd()
         system(paste('cd ', .TRTH$path.output, sep=""))
         setwd(.TRTH$path.output)



More information about the Blotter-commits mailing list