Revision: 443
http://rpy.svn.sourceforge.net/rpy/?rev=443&view=rev
Author: lgautier
Date: 2008-03-15 12:01:08 -0700 (Sat, 15 Mar 2008)
Log Message:
-----------
Moving it all to "branches" (as it is becoming out of place in trunk/sandbox)
Added Paths:
-----------
branches/rpy_nextgen/
branches/rpy_nextgen/README
branches/rpy_nextgen/rpy/
branches/rpy_nextgen/setup.py
branches/rpy_nextgen/test.py
Removed Paths:
-------------
branches/rpy_nextgen/README
branches/rpy_nextgen/rpy/
branches/rpy_nextgen/setup.py
branches/rpy_nextgen/test.py
trunk/sandbox/rpy_nextgen/
Copied: branches/rpy_nextgen (from rev 440, trunk/sandbox/rpy_nextgen)
Deleted: branches/rpy_nextgen/README
===================================================================
--- trunk/sandbox/rpy_nextgen/README 2008-03-15 12:24:10 UTC (rev 440)
+++ branches/rpy_nextgen/README 2008-03-15 19:01:08 UTC (rev 443)
@@ -1,7 +0,0 @@
-
-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).
-
Copied: branches/rpy_nextgen/README (from rev 442,
trunk/sandbox/rpy_nextgen/README)
===================================================================
--- branches/rpy_nextgen/README (rev 0)
+++ branches/rpy_nextgen/README 2008-03-15 19:01:08 UTC (rev 443)
@@ -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).
+
Copied: branches/rpy_nextgen/rpy (from rev 442, trunk/sandbox/rpy_nextgen/rpy)
Deleted: branches/rpy_nextgen/setup.py
===================================================================
--- trunk/sandbox/rpy_nextgen/setup.py 2008-03-15 12:24:10 UTC (rev 440)
+++ branches/rpy_nextgen/setup.py 2008-03-15 19:01:08 UTC (rev 443)
@@ -1,32 +0,0 @@
-
-import os, os.path, sys, shutil
-from distutils.core import setup, Extension
-from subprocess import Popen, PIPE
-
-RHOME = os.getenv("R_HOME")
-if RHOME is None:
- RHOME = Popen(["R", "RHOME"], stdout=PIPE).communicate()[0].strip()
-
-print('R\'s home is:%s' %RHOME)
-
-r_libs = [os.path.join(RHOME, 'lib'), os.path.join(RHOME, 'modules')]
-
-
-rinterface = Extension(
- "rpy.rinterface",
- ["rpy/rinterface/rinterface.c", ],
- include_dirs=[ os.path.join(RHOME, 'include'),],
- libraries=['R', 'Rlapack', 'Rblas'],
- library_dirs=r_libs,
- runtime_library_dirs=r_libs,
- #extra_link_args=[],
- )
-
-setup(name="rpython",
- version="0.0.1",
- description="Python interface to the R language",
- url="http://rpy.sourceforge.net",
- license="(L)GPL",
- ext_modules = [rinterface],
- packages = ['rpy', 'rpy.robjects']
- )
Copied: branches/rpy_nextgen/setup.py (from rev 442,
trunk/sandbox/rpy_nextgen/setup.py)
===================================================================
--- branches/rpy_nextgen/setup.py (rev 0)
+++ branches/rpy_nextgen/setup.py 2008-03-15 19:01:08 UTC (rev 443)
@@ -0,0 +1,44 @@
+
+import os, os.path, sys, shutil
+from distutils.core import setup, Extension
+from subprocess import Popen, PIPE
+
+
+
+
+RHOMES = os.getenv('RHOMES')
+
+if RHOMES is None:
+ RHOMES = [Popen(["R", "RHOME"], stdout=PIPE).communicate()[0].strip(), ]
+else:
+ RHOMES = RHOMES.split(os.pathsep)
+
+
+for RHOME in RHOMES:
+ RHOME = RHOME.strip()
+ print('R\'s home is:%s' %RHOME)
+
+ r_libs = [os.path.join(RHOME, 'lib'), os.path.join(RHOME, 'modules')]
+
+
+ rinterface = Extension(
+ "rpy.rinterface",
+ ["rpy/rinterface/rinterface.c", ],
+ include_dirs=[ os.path.join(RHOME, 'include'),],
+ libraries=['R', 'Rlapack', 'Rblas'],
+ library_dirs=r_libs,
+ runtime_library_dirs=r_libs,
+ #extra_link_args=[],
+ )
+
+ setup(name="rpython",
+ version="0.0.1",
+ description="Python interface to the R language",
+ url="http://rpy.sourceforge.net",
+ license="(L)GPL",
+ ext_modules = [rinterface],
+ packages = ['rpy', 'rpy.robjects']
+ )
+
+
+
Deleted: branches/rpy_nextgen/test.py
===================================================================
--- trunk/sandbox/rpy_nextgen/test.py 2008-03-15 12:24:10 UTC (rev 440)
+++ branches/rpy_nextgen/test.py 2008-03-15 19:01:08 UTC (rev 443)
@@ -1,40 +0,0 @@
-"""
-short demo.
-
-Running this through ipython ends in a memory map
-dump and a segfault.
-"""
-
-import rpy.robjects as 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
-
Copied: branches/rpy_nextgen/test.py (from rev 442,
trunk/sandbox/rpy_nextgen/test.py)
===================================================================
--- branches/rpy_nextgen/test.py (rev 0)
+++ branches/rpy_nextgen/test.py 2008-03-15 19:01:08 UTC (rev 443)
@@ -0,0 +1,40 @@
+"""
+short demo.
+
+Running this through ipython ends in a memory map
+dump and a segfault.
+"""
+
+import rpy.robjects as 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list