[Rpy] Stopping rpy remembering functions...

2010-01-13 Thread Nick Schurch
Hi rpy-ers, I'm having a bit of a problem persuading rpy to forget a user defined function. Suppose I write a python subroutine that defines and runs a R function, something like: def mysubroutine(data, string, condition)    set_default_mode(NO_CONVERSION)        if condition=="False":          

Re: [Rpy] Stopping rpy remembering functions...

2010-01-13 Thread Laurent Gautier
On 1/13/10 3:41 PM, Nick Schurch wrote: > Hi rpy-ers, > > I'm having a bit of a problem persuading rpy to forget a user defined > function. > > Suppose I write a python subroutine that defines and runs a R > function, something like: > > def mysubroutine(data, string, condition) > set_defau

Re: [Rpy] Stopping rpy remembering functions...

2010-01-13 Thread Laurent Gautier
Please keep the thread on the list On 1/13/10 5:29 PM, Nick Schurch wrote: > 2010/1/13 Laurent Gautier: >> >> >> >> Why use "True" and "False" when Python has True and False ? >> >> Why define the function and assign it to an R variable name at each call ? > > This was an example only - the actua

[Rpy] The R_LD_LIBRARY doesn't effect the rpy2 dyn.load

2010-01-13 Thread Guozhu.Wen
Hi, I use rpy2 2.0.6, I encountered some errors when I load('mypackage') within rpy2 by r.source(rfile). Woudl you help me? The environment variable R_LD_LIBRARY_PATH defined in my $RHOME/etc/ldpaths is : ${R_LD_LIBRARY_PATH=${R_HOME}/lib:/usr/local/lib:} I added the path "/usr/local/lib" because

Re: [Rpy] The R_LD_LIBRARY doesn't effect the rpy2 dyn.load

2010-01-13 Thread Laurent
On 14/01/10 04:04, Guozhu.Wen wrote: Hi, I use rpy2 2.0.6, I encountered some errors when I load('mypackage') within rpy2 by r.source(rfile). Woudl you help me? The environment variable R_LD_LIBRARY_PATH defined in my $RHOME/etc/ldpaths is : ${R_LD_LIBRARY_PATH=${R_HOME}/lib:/usr/local/lib:}