Hi,
Thanks for your help. I just didn't understand that rpy and rpy2 are two
completely different versions. So, I installed one of them and read the
manual of another.
Now, I have more interesting problem:
Running the following code results with the error: "#TypeError: object of
type 'numpy.flo
On Wed, 2009-04-22 at 23:53 -0500, Bo Peng wrote:
> On Wed, Apr 22, 2009 at 10:33 PM, laurent wrote:
> > On Wed, 2009-04-22 at 12:16 -0500, Bo Peng wrote:
> > (...)
>
> I apologize for the wording of my previous email, which was sent, less
> than politely, out of my extreme frustration over a
Please specify your rpy2 version.
I am running your code without segfault with
rpy2-2.04 (to be released shortly)
and
R-2.9.0/Python 2.4.6
R-2.9.0/Python 2.5.4
R-2.9.0/Python 2.6.2
Trying updating your Python version, then your R version. There were
reports of people seeing mysterious segfau
The following sequence worked.
r.pdf('/home/my/public_html/my.pdf')
r.hist(mydata)
r.['dev.off']()
Thanks!
Kylee
On Sat, Apr 25, 2009 at 5:15 AM, Peter wrote:
> On 4/25/09, laurent wrote:
> >
> > Did you try something like:
> > http://www.google.com/search?q=rpy2+dev.off
> > ?
>
> I think y
Hi,
I am getting segmentation fault error for robjects.r.table() and trying to
understand why this happens.
Here is simplified example.
import rpy2.robjects as robjects
r = robjects.r
mylist = ['a', 'a', 'b', 'd', 'b']
myNumList = [1,2,3,4]
print robjects.IntVector(myNumList)
#>>> print robjects
Hi again, here is a temporary solution that I am using, in case anyone
encounters the same problem and wants a quick dirty hack solution:
def encode_utf8(D):
"""Encode all unicode strs in a dict to normal strs.
The idea is that you are going to call an R function with RPy, and
yo