title: rpy2 python-r mixed function
body: <p>I was trying to run an R function through python's rpy2:</p>
  <pre><code>def gph(input1):
      frac = rpackages.importr('fracdiff')
  
      a = robjects.r(f'''
          fdGPH({input1})
      ''')
  
      print(a)
  </code></pre>
  <p>it returns an error however:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\************\mainpage.py&quot;, line 168, in update_output
      analiza_statystyczna.gph()
    File &quot;C:\Users\************\analiza_statystyczna.py&quot;, line 151, in gph
      a = robjects.r(f'''
    File &quot;C:\Users\************\lib\site-packages\rpy2\robjects\__init__.py&quot;, line 450, in __call__
      p = rinterface.parse(string)
    File &quot;C:\Users\************\lib\site-packages\rpy2\rinterface_lib\conversion.py&quot;, line 45, in _
      cdata = function(*args, **kwargs)
    File &quot;C:\Users\************\lib\site-packages\rpy2\rinterface.py&quot;, line 108, in parse
      res = _rinterface._parse(robj.__sexp__._cdata, num, rmemory)
    File &quot;C:\Users\************\lib\site-packages\rpy2\rinterface_lib\_rinterface_capi.py&quot;, line 652, in _parse
      raise RParsingError('Parsing status not OK',
  rpy2.rinterface_lib._rinterface_capi.RParsingError: Parsing status not OK - PARSING_STATUS.PARSE_ERROR
  </code></pre>
  <p>What am I doing wrong?</p>