title: UsageError: unrecognized arguments: in %R line
body: <p>Since I discovered rpy2 and the possibility to use %R within my ipython notebook, my coding has become much easier. But I might have hit a wall.</p>
  
  <p>I need to generate value from a stable distribution. I am using stabledist package from R.</p>
  
  <p>I need to run the command:</p>
  
  <pre><code>      Fx = pstable(seq(-2,4,0.1), alpha =alfa_x, beta = -1, gamma = scale_x, delta = delta_x, pm = 1, lower.tail = TRUE, log.p = FALSE, subdivisions = 1000)
  </code></pre>
  
  <p>when I define one of my cell as a R cell, and I run the command there:</p>
  
  <pre><code>      %%R
        Fx = pstable(.....
  </code></pre>
  
  <p>everything works great.</p>
  
  <p>but I need to place this function within a python script. So far I have used many R packages, and the push/pull of data has worked perfectly, so it has the use of lines of R codes (with %R rmagic) within python scripts.</p>
  
  <p>however with this one, if I call the same package and function within a python script, in the following way:</p>
  
  <pre><code>      python code...
        %Rpush alfa_x
        %Rpush scale_x
        %Rpush delta_x
        %R Fx = pstable(seq(-2,4,0.1), alpha =alfa_x, beta = -1, gamma = scale_x, delta = delta_x, pm = 1, lower.tail = TRUE, log.p = FALSE, subdivisions = 1000)
  </code></pre>
  
  <p>I get the Usage error:</p>
  
  <pre><code>     UsageError: unrecognized arguments:.....
  </code></pre>
  
  <p>I basically get some of the error reported in this old [thread][1]</p>
  
  <p>Any suggestion?</p>
  
  <p>(I did try to use %%R within my python code, but it doesn't change anything)</p>
  
  <p>[1]<a href="https://bitbucket.org/rpy2/rpy2/issue/253/r-select-flights-year-day" rel="nofollow">https://bitbucket.org/rpy2/rpy2/issue/253/r-select-flights-year-day</a></p>