"import rpy" will import rpy, not rpy2. Did you try following the examples in the documentation ? http://rpy.sourceforge.net/rpy2/doc-2.1/html/index.html
L. PS: glad to hear that there is interest in rpy2 for programming with data. On 7/14/10 10:26 PM, Richard Bonneau wrote: > Hi, > > I'm trying to get rpy working for a course I'm teaching in sept. I've > installed the code and all messages point toward a clean install. > I'm using rpy2-2.1.3, python 2.6, R 2.11.1 (not installed from source, > but the precompiled version with the gui for macOS10.6). > I have the developers tools installed (newish install of everything) and > have a working install of numpy. > > here is what i get: > > >>> import rpy > >>> dir() > ['__builtins__', '__doc__', '__name__', '__package__', 'numpy', 'rpy', > 'sys'] > > It seems like it loads, throws no errors , and the install seemed clean > But it cannot find the function r. > see below: > >>> values = [r.dchisq(x, 4) for x in r.seq(0, 10, by=0.1)] > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > NameError: name 'r' is not defined > >>> r.seq(1,4) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > NameError: name 'r' is not defined > > I think it would be great to work this package into the "programing with > data" course I teach at Courant, > so any help with install tips would be greatly appreciated. Also how > would you recommend removing > the code to try installing over with a clean slate? > > > , > > > > > Richard Bonneau > NYU Ast. Prof Dept Biology/Computer Science > 852 Brown > > mailing address: > Dept of Biology/ Computer Science > 100 Washington Sq E > 1009 main building > > kənˈstrəktiv > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list