On 03/09/2011 08:27 PM, Laurent wrote: > On 09/03/11 13:19, Moritz Beber wrote: >> Hi all, >> >> I'm running rpy2 version 2.2.0dev and I had some problems with setting >> my background to a blank theme. calling ggplot2.theme_blank() gives me >> the following error: >> >> Traceback (most recent call last): >> File "<pyshell#8>", line 1, in<module> >> plots.ggplot2.theme_blank() >> File >> "/usr/local/lib/python2.6/dist-packages/rpy2/robjects/lib/ggplot2.py", >> line 590, in new >> res = cls(cls._constructor()) >> File >> "/usr/local/lib/python2.6/dist-packages/rpy2/robjects/vectors.py", line >> 186, in __init__ >> super(Vector, self).__init__(o) >> ValueError: Invalid sexpvector. >> >> And the construction of ggplot2.ThemeBlank requires an extra argument >> and I don't know what type it should be. > > That was a bug. Thanks for reporting it. > It is now fixed in commit 1500:97d788ba27f8 > > > L. > > > >> Looking forward to your help, >> Moritz >> >> ------------------------------------------------------------------------------ >> >> Colocation vs. Managed Hosting >> A question and answer guide to determining the best fit >> for your organization - today and in the future. >> http://p.sf.net/sfu/internap-sfd2d >> _______________________________________________ >> rpy-list mailing list >> rpy-list@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/rpy-list > >
Still having problems: >>> import rpy2 >>> rpy2.__version__ 8: '2.2.0alpha4' >>> import rpy2.robjects.lib.ggplot2 >>> rpy2.robjects.lib.ggplot2.theme_blank() Traceback (most recent call last): File "<pyshell#29>", line 1, in <module> rpy2.robjects.lib.ggplot2.theme_blank() File "/usr/local/lib/python2.6/dist-packages/rpy2/robjects/lib/ggplot2.py", line 588, in new res = cls(cls._constructor()) File "/usr/local/lib/python2.6/dist-packages/rpy2/robjects/vectors.py", line 204, in __init__ super(Vector, self).__init__(o) ValueError: Invalid sexpvector. I did update to your latest commit, though. $ hg id 97d788ba27f8 (version_2.2.x) tip $ hg id -n 1500 ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list