Show More
@@ -578,6 +578,7 b' class RMagics(Magics):' | |||
|
578 | 578 | self.r('png("%s/Rplots%%03d.png",%s)' % (tmpd.replace('\\', '/'), png_args)) |
|
579 | 579 | |
|
580 | 580 | text_output = '' |
|
581 | try: | |
|
581 | 582 | if line_mode: |
|
582 | 583 | for line in code.split(';'): |
|
583 | 584 | text_result, result = self.eval(line) |
@@ -589,6 +590,13 b' class RMagics(Magics):' | |||
|
589 | 590 | text_result, result = self.eval(code) |
|
590 | 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 | 600 | self.r('dev.off()') |
|
593 | 601 | |
|
594 | 602 | # read out all the saved .png files |
General Comments 0
You need to be logged in to leave comments.
Login now