Skip to content
Permalink
Browse files

R script execution log information: commands and console output.

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@346 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
cpolymeris@gmail.com
cpolymeris@gmail.com committed Aug 10, 2012
1 parent 2aa1c70 commit cf2fca099874abda89cd94da7f141b9cbdb5cc6e
Showing with 6 additions and 2 deletions.
  1. +3 −1 src/sextante/r/RAlgorithm.py
  2. +3 −1 src/sextante/r/RUtils.py
@@ -177,8 +177,10 @@ def processAlgorithm(self, progress):
loglines = []
loglines.append("R execution commands")
loglines += self.getFullSetOfRCommands()
for line in loglines:
progress.setCommand(line)
SextanteLog.addToLog(SextanteLog.LOG_INFO, loglines)
RUtils.executeRAlgorithm(self)
RUtils.executeRAlgorithm(self, progress)
if self.showPlots:
htmlfilename = self.getOutputValue(RAlgorithm.RPLOTS)
f = open(htmlfilename, "w")
@@ -47,7 +47,7 @@ def getConsoleOutputFilename():


@staticmethod
def executeRAlgorithm(alg):
def executeRAlgorithm(alg, progress):
RUtils.verboseCommands = alg.getVerboseCommands();
RUtils.createRScriptFromRCommands(alg.getFullSetOfRCommands())
if SextanteUtils.isWindows():
@@ -64,6 +64,8 @@ def executeRAlgorithm(alg):
loglines = []
loglines.append("R execution console output")
loglines += RUtils.allConsoleResults
for line in loglines:
progress.setConsoleInfo(line)
SextanteLog.addToLog(SextanteLog.LOG_INFO, loglines)

@staticmethod

0 comments on commit cf2fca0

Please sign in to comment.
You can’t perform that action at this time.