Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Duncan Murdoch
On 1/21/2008 11:50 AM, Thomas Petzoldt wrote: > Duncan Murdoch wrote: >> On 1/21/2008 9:58 AM, Thomas Petzoldt wrote: >>> Hello Duncan, >>> >>> thank you very much for your prompt reply. When I interpret your answer >>> correctly there seems to be no alternative than either: >>> >>> A) using lots o

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
Hi Gabor, nice to see you on this thread. As you see, I'm back with my old problem. Gabor Grothendieck wrote: > If the intention is to place fList's contents in the global > environment > then you need to specify that in addtoenv or else it assumes > the parent environment. No, it was the in

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
Duncan Murdoch wrote: > On 1/21/2008 9:58 AM, Thomas Petzoldt wrote: >> Hello Duncan, >> >> thank you very much for your prompt reply. When I interpret your answer >> correctly there seems to be no alternative than either: >> >> A) using lots of (possibly private) functions in the package or, >> B)

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Gabor Grothendieck
If the intention is to place fList's contents in the global environment then you need to specify that in addtoenv or else it assumes the parent environment. > flistA <- list(foo = function () 1:10, bar = function() log(foo())) > makefun <- function(fList) addtoenv(fList, .GlobalEnv) > makefun(flis

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Duncan Murdoch
On 1/21/2008 9:58 AM, Thomas Petzoldt wrote: > Hello Duncan, > > thank you very much for your prompt reply. When I interpret your answer > correctly there seems to be no alternative than either: > > A) using lots of (possibly private) functions in the package or, > B) define dummies for all funct

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Thomas Petzoldt
Hello Duncan, thank you very much for your prompt reply. When I interpret your answer correctly there seems to be no alternative than either: A) using lots of (possibly private) functions in the package or, B) define dummies for all functions which are in such lists or, C) ignore the NOTE, knowin

Re: [Rd] experiments with slot functions and possible problems NOTE

2008-01-21 Thread Duncan Murdoch
On 1/21/2008 8:30 AM, Thomas Petzoldt wrote: > Hello, > > first of all, thanks to LT for \pkg{codeutils}. I agree that it is > indeed very useful to identify errors and also to encourage re-thinking > past solutions. My problem: > > I want to compare different sets of related sub-functions which