guRus Is there a way by which I can search for a particular function or a particular line of code within the maze of all the R codes that are interlinked? Say for instance I am running a code using quantstrat package and on a particular line I get the error saying x is missing in is.array(x). I want to figure out where is.array is in all the codes that my code refers to? How do I do this? Is there like a grep or search function that can say tell me that 'here is the function inside which is.array(X) is being called' etc? out<-try(applyStrategy(strategy=stratSMA5D , portfolios=portfolio.st)) Error in is.array(x) : 'x' is missing Thx -- 'Raghu' [[alternative HTML version deleted]]
On 30/07/2010 8:04 AM, Raghu wrote:> guRus > > Is there a way by which I can search for a particular function or a > particular line of code within the maze of all the R codes that are > interlinked? Say for instance I am running a code using quantstrat package > and on a particular line I get the error saying x is missing in is.array(x). > I want to figure out where is.array is in all the codes that my code refers > to? How do I do this? Is there like a grep or search function that can say > tell me that 'here is the function inside which is.array(X) is being called' > etc? > > out<-try(applyStrategy(strategy=stratSMA5D , portfolios=portfolio.st)) > Error in is.array(x) : 'x' is missing?traceback Duncan Murdoch
On 30/07/2010 8:04 AM, Raghu wrote:> guRus > > Is there a way by which I can search for a particular function or a > particular line of code within the maze of all the R codes that are > interlinked? Say for instance I am running a code using quantstrat package > and on a particular line I get the error saying x is missing in is.array(x). > I want to figure out where is.array is in all the codes that my code refers > to? How do I do this? Is there like a grep or search function that can say > tell me that 'here is the function inside which is.array(X) is being called' > etc? > > out<-try(applyStrategy(strategy=stratSMA5D , portfolios=portfolio.st)) > Error in is.array(x) : 'x' is missing?traceback For more info, see the somewhat outdated http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR pages. Duncan Murdoch