Skip to content

Commit cf2fca0

Browse files
author
cpolymeris@gmail.com
committedAug 10, 2012
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
1 parent 2aa1c70 commit cf2fca0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎src/sextante/r/RAlgorithm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,10 @@ def processAlgorithm(self, progress):
177177
loglines = []
178178
loglines.append("R execution commands")
179179
loglines += self.getFullSetOfRCommands()
180+
for line in loglines:
181+
progress.setCommand(line)
180182
SextanteLog.addToLog(SextanteLog.LOG_INFO, loglines)
181-
RUtils.executeRAlgorithm(self)
183+
RUtils.executeRAlgorithm(self, progress)
182184
if self.showPlots:
183185
htmlfilename = self.getOutputValue(RAlgorithm.RPLOTS)
184186
f = open(htmlfilename, "w")

‎src/sextante/r/RUtils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def getConsoleOutputFilename():
4747

4848

4949
@staticmethod
50-
def executeRAlgorithm(alg):
50+
def executeRAlgorithm(alg, progress):
5151
RUtils.verboseCommands = alg.getVerboseCommands();
5252
RUtils.createRScriptFromRCommands(alg.getFullSetOfRCommands())
5353
if SextanteUtils.isWindows():
@@ -64,6 +64,8 @@ def executeRAlgorithm(alg):
6464
loglines = []
6565
loglines.append("R execution console output")
6666
loglines += RUtils.allConsoleResults
67+
for line in loglines:
68+
progress.setConsoleInfo(line)
6769
SextanteLog.addToLog(SextanteLog.LOG_INFO, loglines)
6870

6971
@staticmethod

0 commit comments

Comments
 (0)
Please sign in to comment.