Re: [R] Overriding contributed package functions

2009-03-05 Thread Prof Brian Ripley
The problem is that tsdiag is a generic (the same in both packages), and package TSA sets methods for it (and methods for classes in package stats which has already registered methods). stats:::tsdiag.Arima(model1) ought to work (it does for me in your example), but please take with up with

Re: [R] Overriding contributed package functions

2009-03-05 Thread Greg Snow
ct.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Richard Saba > Sent: Thursday, March 05, 2009 9:52 AM > To: r-help@r-project.org > Subject: [R] Overriding contributed package functions > > The "tsdiag" function in the TSA package overrides the "tsdi

[R] Overriding contributed package functions

2009-03-05 Thread Richard Saba
The "tsdiag" function in the TSA package overrides the "tsdiag" function in the "stats" package. There are a few annoying bugs in the TSA's version of the function so I would like to use the "stats" function but still have access to other TSA functions. I have tried using stats::tsdiag( ) but as