Show More
@@ -578,6 +578,7 b' class RMagics(Magics):' | |||||
578 | self.r('png("%s/Rplots%%03d.png",%s)' % (tmpd.replace('\\', '/'), png_args)) |
|
578 | self.r('png("%s/Rplots%%03d.png",%s)' % (tmpd.replace('\\', '/'), png_args)) | |
579 |
|
579 | |||
580 | text_output = '' |
|
580 | text_output = '' | |
|
581 | try: | |||
581 | if line_mode: |
|
582 | if line_mode: | |
582 | for line in code.split(';'): |
|
583 | for line in code.split(';'): | |
583 | text_result, result = self.eval(line) |
|
584 | text_result, result = self.eval(line) | |
@@ -589,6 +590,13 b' class RMagics(Magics):' | |||||
589 | text_result, result = self.eval(code) |
|
590 | text_result, result = self.eval(code) | |
590 | text_output += text_result |
|
591 | text_output += text_result | |
591 |
|
592 | |||
|
593 | except RInterpreterError as e: | |||
|
594 | print(e.stdout) | |||
|
595 | if not e.stdout.endswith(e.err): | |||
|
596 | print(e.err) | |||
|
597 | rmtree(tmpd) | |||
|
598 | return | |||
|
599 | ||||
592 | self.r('dev.off()') |
|
600 | self.r('dev.off()') | |
593 |
|
601 | |||
594 | # read out all the saved .png files |
|
602 | # read out all the saved .png files |
General Comments 0
You need to be logged in to leave comments.
Login now