CoCalc Public Filesshare.ipynbOpen with one click!
Author: 小橋 晶
Views : 26
Description: 共有テスト
Compute Environment: Ubuntu 20.04 (Default)
In [ ]:
In [1]:
--------------------------------------------------------------------------- RParsingError Traceback (most recent call last) <ipython-input-1-fbfce53160b5> in <module> ----> 1 get_ipython().run_line_magic('r', '# Rインタプリタに切り替え') 2 print("よく来たな。") /ext/sage/sage-9.2/local/lib/python3.8/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth) 2315 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals 2316 with self.builtin_trap: -> 2317 result = fn(*args, **kwargs) 2318 return result 2319 /ext/sage/sage-9.2/local/lib/python3.8/site-packages/sage/repl/interface_magic.py in line_magic(line) 222 def line_magic(line): 223 if line: --> 224 return self._interface(line) 225 else: 226 if terminal: /ext/sage/sage-9.2/local/lib/python3.8/site-packages/sage/interfaces/interface.py in __call__(self, x, name) 294 295 if isinstance(x, str): --> 296 return cls(self, x, name=name) 297 try: 298 # Special methods do not and should not have an option to /ext/sage/sage-9.2/local/lib/python3.8/site-packages/sage/interfaces/interface.py in __init__(self, parent, value, is_name, name) 717 else: 718 try: --> 719 self._name = parent._create(value, name=name) 720 except (TypeError, RuntimeError, ValueError) as x: 721 raise TypeError(x) /ext/sage/sage-9.2/local/lib/python3.8/site-packages/sage/interfaces/interface.py in _create(self, value, name) 499 def _create(self, value, name=None): 500 name = self._next_var_name() if name is None else name --> 501 self.set(name, value) 502 return name 503 /ext/sage/sage-9.2/local/lib/python3.8/site-packages/sage/interfaces/r.py in set(self, var, value) 1124 """ 1125 cmd = '%s <- %s'%(var,value) -> 1126 out = self.eval(cmd) 1127 1128 def get(self, var): /ext/sage/sage-9.2/local/lib/python3.8/site-packages/sage/interfaces/r.py in eval(self, code, *args, **kwds) 1337 """ 1338 self._lazy_init() -> 1339 return str(robjects.r(code)).rstrip() 1340 1341 /ext/sage/sage-9.2/local/lib/python3.8/site-packages/rpy2/robjects/__init__.py in __call__(self, string) 413 414 def __call__(self, string): --> 415 p = rinterface.parse(string) 416 res = self.eval(p) 417 return conversion.rpy2py(res) /ext/sage/sage-9.2/local/lib/python3.8/site-packages/rpy2/rinterface_lib/conversion.py in _(*args, **kwargs) 42 def _cdata_res_to_rinterface(function): 43 def _(*args, **kwargs): ---> 44 cdata = function(*args, **kwargs) 45 # TODO: test cdata is of the expected CType 46 return _cdata_to_rinterface(cdata) /ext/sage/sage-9.2/local/lib/python3.8/site-packages/rpy2/rinterface.py in parse(text, num) 47 robj = StrSexpVector([text]) 48 with memorymanagement.rmemory() as rmemory: ---> 49 res = _rinterface._parse(robj.__sexp__._cdata, num, rmemory) 50 return res 51 /ext/sage/sage-9.2/local/lib/python3.8/site-packages/rpy2/rinterface_lib/_rinterface_capi.py in _parse(cdata, num, rmemory) 597 # PARSE_EOF 598 if status[0] != openrlib.rlib.PARSE_OK: --> 599 raise RParsingError('Parsing status not OK', 600 status=PARSING_STATUS(status[0])) 601 return res RParsingError: Parsing status not OK - PARSING_STATUS.PARSE_INCOMPLETE
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: