[R] Modular coding in R, OOP

2012-02-14 Thread deivit
Hi all, I've been having a look to all OOP functionallity in R, basically I've been reading "Statistics and Computing" book by Chambers. My problem is that I'm thinking about refactoring many functions of the applications I work with (which is quite huge), in order to modularize its components. I

Re: [R] Call dynamic functions

2012-01-27 Thread deivit
WoW Peter! That worked like charm. I earn you some hours of my time :) Thanks a lot! On Jan 27, 2012, at 10:14 , deivit wrote: > Hi all, > > Does anybody know a better way to call functions than using 'eval'? > > I need to call functions which it's name is sto

[R] Call dynamic functions

2012-01-27 Thread deivit
Hi all, Does anybody know a better way to call functions than using 'eval'? I need to call functions which it's name is stored in a variable. Right now create the command string I'd like to run and then I run it using "eval". Running functions inside "eval" is starting annoying because it leads

Re: [R] debug package: mtrace fails

2012-01-24 Thread deivit
I'll try, Here is a piece of code it fails for me, the error I get is always the same, and it happens in most of my functions. The problem is always the same trying to execute 'mtrace'. Thanks! --- execution -- > mtrace(index_remap) Error in x[[i]] : subscript out of

[R] debug package: mtrace fails

2012-01-24 Thread deivit
Hi all, Since three month ago I started working with R professionally, I never did it before, so I am such a newbie. I am having some problems using the 'debug' package. I love this package, but most of the times I wanna use it it just fails :P When typing at prompt 'mtrace(myfunct)' most of the