The R bin/ directory might have to be in your PATH.
(there is an entry about that in the FAQ for rpy)


Santosh Mishra wrote:
> Dear friends,
> I am new to Rpy2 and I have the following problem.
> I run the following example code from rpy2 documentation page
> 
> import rpy2.robjects as robjects
> 
> r = robjects.r
> 
> ctl = 
> robjects.FloatVector([4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14])
> trt = 
> robjects.FloatVector([4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69])
> group = r.gl <http://r.gl>(2, 10, 20, labels = ["Ctl","Trt"])
> weight = ctl + trt
> 
> robjects.globalEnv["weight"] = weight
> robjects.globalEnv["group"] = group
> lm_D9 = r.lm("weight ~ group")
> print(r.anova(lm_D9))
> 
> lm_D90 = r.lm("weight ~ group - 1")
> *print(r.summary(lm_D90)*
> 
> everything runs fine till the penultimate line. On the last line I get 
> the following error
> 
> 
> Error in chol2inv(Qr$qr[p1, p1, drop = FALSE]) :
>   lapack routines cannot be loaded
> ---------------------------------------------------------------------------
> RRuntimeError                             Traceback (most recent call last)
> 
> c:\py_bank\Rpython.py in <module>()
> ----> 1
>       2
>       3
>       4
>       5
> 
> C:\Python25\lib\site-packages\rpy2\robjects\__init__.pyc in 
> __call__(self, *args, **kwargs)
>     420         for k, v in kwargs.iteritems():
>     421             new_kwargs[k] = conversion.py2ri(v)
> --> 422         res = super(RFunction, self).__call__(*new_args, 
> **new_kwargs)
>     423         res = conversion.ri2py(res)
>     424         return res
> 
> RRuntimeError: Error in chol2inv(Qr$qr[p1, p1, drop = FALSE]) :
>   lapack routines cannot be loaded
> 
> I have R2.9.1, python2.5, and  I have installed rpy2-2.0.6. My machine 
> is Window xp professional.
> 
> Any help will be highly appreciated.
> Thank you.
> Santosh Mishra
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to