Show More
@@ -140,9 +140,9 class RMagics(Magics): | |||||
140 | try: |
|
140 | try: | |
141 | value = ri.baseenv['eval'](ri.parse(line)) |
|
141 | value = ri.baseenv['eval'](ri.parse(line)) | |
142 | except (ri.RRuntimeError, ValueError) as exception: |
|
142 | except (ri.RRuntimeError, ValueError) as exception: | |
143 | self.flush() # otherwise next return seems to have copy of error |
|
143 | warning_or_other_msg = self.flush() # otherwise next return seems to have copy of error | |
144 |
raise RMagicError(unicode_to_str('parsing and evaluating line "%s". |
|
144 | raise RMagicError(unicode_to_str('parsing and evaluating line "%s".\nR error message: "%s"\n R stdout:"%s"\n' % | |
145 | (line, str_to_unicode(exception.message, 'utf-8')))) |
|
145 | (line, str_to_unicode(exception.message, 'utf-8'), warning_or_other_msg))) | |
146 | text_output = self.flush() |
|
146 | text_output = self.flush() | |
147 | ri.set_writeconsole(old_writeconsole) |
|
147 | ri.set_writeconsole(old_writeconsole) | |
148 | return text_output, value |
|
148 | return text_output, value |
@@ -61,7 +61,7 | |||||
61 | "output_type": "pyout", |
|
61 | "output_type": "pyout", | |
62 | "prompt_number": 2, |
|
62 | "prompt_number": 2, | |
63 | "text": [ |
|
63 | "text": [ | |
64 |
"<matplotlib.collections.PathCollection at 0x10 |
|
64 | "<matplotlib.collections.PathCollection at 0x10d7b5650>" | |
65 | ] |
|
65 | ] | |
66 | } |
|
66 | } | |
67 | ], |
|
67 | ], | |
@@ -696,7 +696,10 | |||||
696 | "output_type": "stream", |
|
696 | "output_type": "stream", | |
697 | "stream": "stdout", |
|
697 | "stream": "stdout", | |
698 | "text": [ |
|
698 | "text": [ | |
699 | "parsing and evaluating line \"nosuchvar\". R traceback: \"Error in eval(expr, envir, enclos) : object 'nosuchvar' not found", |
|
699 | "parsing and evaluating line \"nosuchvar\".", | |
|
700 | "R error message: \"Error in eval(expr, envir, enclos) : object 'nosuchvar' not found", | |||
|
701 | "\"", | |||
|
702 | " R stdout:\"Error in eval(expr, envir, enclos) : object 'nosuchvar' not found", | |||
700 | "\"", |
|
703 | "\"", | |
701 | "", |
|
704 | "", | |
702 | "" |
|
705 | "" |
General Comments 0
You need to be logged in to leave comments.
Login now