Revision 2541

tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/ExecRMacro.groovy (revision 2541)
26 26
}
27 27

  
28 28
def r = RWorkspace.getRWorkspaceInstance()
29
new File(Toolbox.getTxmHomePath(), "results").mkdirs()
29 30
def file = File.createTempFile("IndexHist", ".svg", new File(Toolbox.getTxmHomePath(), "results"))
30 31

  
31 32
/// BEGIN SCRIPTS
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/PlotSpecifMacro.groovy (revision 2541)
62 62
// END OF PARAMETERS
63 63

  
64 64
def r = RWorkspace.getRWorkspaceInstance()
65
def file = File.createTempFile("txm", ".svg", new File(Toolbox.getTxmHomePath(), "results"))
65
def resultsDir = new File(Toolbox.getTxmHomePath(), "results")
66
resultsDir.mkdirs()
67
def file = File.createTempFile("txm", ".svg", resultsDir)
66 68

  
67 69
/// BEGIN SCRIPTS
68 70
def script ="""
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/Index2barplotMacro.groovy (revision 2541)
26 26
}
27 27

  
28 28
def r = RWorkspace.getRWorkspaceInstance()
29
new File(Toolbox.getTxmHomePath(), "results")
29 30
def file = File.createTempFile("IndexHist", ".svg", new File(Toolbox.getTxmHomePath(), "results"))
30 31

  
31 32
/// BEGIN SCRIPTS
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/commands/StructuresIndexMacro.groovy (revision 2541)
472 472
	def textDivLengths1 = textDivLengths[0] as int[]
473 473
	r.addVectorToWorkspace("textDivLengths1", textDivLengths1)
474 474

  
475
	new File(Toolbox.getTxmHomePath(), "results").mkdirs()
475 476
	def PNGFile = File.createTempFile("txm", ".png", new File(Toolbox.getTxmHomePath(), "results"))
476 477
	def PNGFilePath = PNGFile.getAbsolutePath()
477 478
	println "PNG file: "+PNGFilePath

Also available in: Unified diff