nicolas
nicolas

Reputation: 9805

rpy2 printing twice the output

I upgraded to rpy2.ipython from rmagic but it seems that every statement now prints to the console. Previously, an explicit print had to be called.

Is there an option to get back the former behaviour ?

enter image description here

Upvotes: 0

Views: 727

Answers (1)

Dav Clark
Dav Clark

Reputation: 1460

This is fixed now in version_2.4.x on bitbucket:

https://bitbucket.org/lgautier/rpy2/commits/e22cdab51c94a504c4ea9808c6fad2772a34ef5e?at=default#Lrpy/ipython/rmagic.pyT216

Basically, I had a conceptual glitch while trying to fix up that logic - R is a Lisp, and withVisible operates on the code it gets in a way that doesn't translate via rpy2's python wrapper (which will operate in pythons function execution semantics, where the innermost is evaluated, return values passed out, etc.).

Upvotes: 2

Related Questions