On Thu, 2009-04-09 at 21:45 -0500, Mark Larsen wrote:
> Hate to keep replying to my own message but...
> 
> I thought I'd throw a newer version of R at this problem.  My above
> errors are with 2.7.1 and I thought I'd test with 2.8.2 (my
> development box, where all works well is at 2.7.2).  I kept my main
> 2.7.1 install in /usr/lib64 and installed 2.8.2 into /usr/local/lib64.
> I hacked setup.py to compile rpy2 against 2.8.2.

Where was the hack needed ?
Setting your target R as the first one found in the PATH should be
enough.
Combining that with the use of --prefix during the install step, then
with PYTHONPATH for testing purposes is looking to me like a safe way to
split things.

>   I then tried:
> 
> % export R_HOME="/usr/local/lib64/R"
> % python
> 
> >>> import rpy2.robjects as ro 
> Error in capabilities("aqua") : 
>   0 arguments passed to .Internal(capabilities) which requires 1 
> In addition: Warning messages: 
> 1: package 'methods' was built under R version 2.8.1 
> 2: package 'datasets' was built under R version 2.8.1 
> 3: package 'utils' was built under R version 2.8.1 
> 4: package 'grDevices' was built under R version 2.8.1 
> Error : .onLoad failed in 'loadNamespace' for 'grDevices' 
> Error in capabilities("aqua") : 
>   0 arguments passed to .Internal(capabilities) which requires 1 
> In addition: Warning messages: 
> 1: package grDevices in options("defaultPackages") was not found 
> 2: package 'graphics' was built under R version 2.8.1 
> Error : .onLoad failed in 'loadNamespace' for 'grDevices' 
> Error in capabilities("aqua") : 
>   0 arguments passed to .Internal(capabilities) which requires 1 
> In addition: Warning messages: 
> 1: package graphics in options("defaultPackages") was not found 
> 2: package 'stats' was built under R version 2.8.1 
> Error : .onLoad failed in 'loadNamespace' for 'grDevices' 
> During startup - Warning message: 
> package stats in options("defaultPackages") was not found 
> >>> 
> 
> Is there a way to use rpy2 with multiple version of R installed?
> 
> Thanks,
> Mark
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________ rpy-list mailing list 
> rpy-list@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to