[Tutor] drawing a graph

Isr Gish isrgish at fastem.com
Tue Sep 7 05:00:51 CEST 2004


Hi Tpc,

   >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:
   >
   >http://tolstoy.newcastle.edu.au/R/help/04/07/1872.html
   >
   >and frustratingly, if you go to CRAN:
   >
   >http://cran.r-project.org/mirrors.html
   >
   >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
   >error:
   >
   >>>> 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,
Isr

   >
   >
   >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.
   >>
   >>     http://www.r-project.org/
   >>
   >> It is Free Software, so you should be able to grab it from several
   >> mirrors.
   >>
   >> If you're having more problems with 'rpy', it might be best to bring them
   >> up on 'rpy-list':
   >>
   >>     http://rpy.sourceforge.net/maillist.html
   >>
   >>
   >> Good luck!
   >>
   >>
   >
   >_______________________________________________
   >Tutor maillist  -  Tutor at python.org
   >http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list