Hi, Im trying to load the rpy libraries for ggplot 2 and importr. I'm on Ubuntu 10.10 x64 with R packages installed using aptitude (including r-base-dev). Ive installed the ggplot2 package using the R package.install("ggplot2") command. I'm using the svn version of rpy2:
>>> rpy2.__version__ '2.1.0-dev' importing problems fro 'packages' and 'ggplot2' >>> import rpy2.robjects.lib.ggplot2 as ggplot2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named lib.ggplot2 >>> import rpy2.robjects as ro >>> from rpy2.robjects.packages import importr Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named packages >>> import rpy2.robjects.numpy2ri results of installation test: ~$ python -m 'rpy2.tests' .......................Error in .Primitive("[")(0:10, list("a", "b", "c")) : invalid subscript type 'list' ............................................................F.....Loading required package: splines ..................Error in function (x) : object 'y' not found ...Error in .Primitive("sum")(c("a", "b", "c", "d", "e", "f", "g", "h", "i", : invalid 'type' (character) of argument ......F.......................................... ====================================================================== FAIL: testNewWithoutInit (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_SexpVector.py", line 43, in testNewWithoutInit self.assertTrue(False) # worked when tested, but calling endEmbeddedR causes trouble AssertionError ====================================================================== FAIL: testCallErrorWhenEndedR (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_EmbeddedR.py", line 30, in testCallErrorWhenEndedR self.assertTrue(False) # worked when tested, but calling endEmbeddedR causes trouble AssertionError ---------------------------------------------------------------------- Ran 159 tests in 0.215s FAILED (failures=2) thanks in advance for any assistance! Peter ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list