Revision: 417 http://rpy.svn.sourceforge.net/rpy/?rev=417&view=rev Author: lgautier Date: 2008-03-03 13:43:24 -0800 (Mon, 03 Mar 2008)
Log Message: ----------- Added a README Added a file to demo a bit (this will/should go away when doc appears) Added Paths: ----------- trunk/sandbox/rpy_nextgen/README trunk/sandbox/rpy_nextgen/test.py Added: trunk/sandbox/rpy_nextgen/README =================================================================== --- trunk/sandbox/rpy_nextgen/README (rev 0) +++ trunk/sandbox/rpy_nextgen/README 2008-03-03 21:43:24 UTC (rev 417) @@ -0,0 +1,7 @@ + +All this is under development. + +The development is currently done with Python 2.5.1 and R-2.7.0-devel + +Compatibility with Python 2.4.x should be ok, now or later (might already be ok). + Added: trunk/sandbox/rpy_nextgen/test.py =================================================================== --- trunk/sandbox/rpy_nextgen/test.py (rev 0) +++ trunk/sandbox/rpy_nextgen/test.py 2008-03-03 21:43:24 UTC (rev 417) @@ -0,0 +1,40 @@ +""" +short demo. + +Running this through ipython ends in a memory map +dump and a segfault. +""" + +import robjects +import array + +r = robjects.r + +x = array.array('i', range(10)) +y = r.rnorm(10) + +r.X11() + +r.par(mfrow=array.array('i', [2,2])) +r.plot(x, y, ylab="foo/bar", col="red") + +kwargs = {'ylab':"foo/bar", 'type':"b", 'col':"blue", 'log':"x"} +r.plot(x, y, **kwargs) + + +m = r.matrix(r.rnorm(100), ncol=5) +pca = r.princomp(m) +r.plot(pca, main="Eigen values") +r.biplot(pca, main="biplot") + + +if not r.require("GO")[0]: + raise(Exception("Bioconductor Package GO missing")) + + +goItem = r.GOTERM["GO:0000001"] + +## goItem in an instance of an S4 class +## slots can be accessed as Python attributes +goItem.Term + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list