[Tutor] drawing a graph
isrgish at fastem.com
Tue Sep 7 05:00:51 CEST 2004
>From: "tpc at csua.berkeley.edu"<tpc at csua.berkeley.edu>
>Sent: 9/6/04 8:33:51 AM
>To: "Danny Yoo"<dyoo at hkn.eecs.berkeley.edu>
>Cc: "Tutor"<tutor at python.org>, "alan.gauld at blueyonder.co.uk"<alan.gauld at blueyonder.co.uk>
>Subject: Re: [Tutor] drawing a graph
>hi Danny, just an update, it seems that Rpy-0.3.5 is compiled only for R
>version 1.8.1 (in other words, you need the binary executable rw1081.exe)
>from the looks of this page:
>and frustratingly, if you go to CRAN:
>the only binary executables available for download are rw1091.exe and
>rw1090.exe. After installing R version 1.9.1, putting 'C:\Program
>Files\R\rw1091\bin' in my path, and 'import rpy' I got the following
>>>> import rpy
>>>> degrees = 4
>>>> grid = r.seq(0, 10, length=100)
>NameError: name 'r' is not defined
This error is saying exactly whats wrong. You never defined 'r' as anything. So python is complainig that its not defined.
(I don't think this has anything to do with 'rpy'.)
All the best,
>On Mon, 6 Sep 2004, Danny Yoo wrote:
>> Hi Tpc,
>> 'rpy' has a few prerequisites. You need to first install R, because 'rpy'
>> is a translator between R and Python.
>> It is Free Software, so you should be able to grab it from several
>> If you're having more problems with 'rpy', it might be best to bring them
>> up on 'rpy-list':
>> Good luck!
>Tutor maillist - Tutor at python.org
More information about the Tutor