[Rd] Stats not loaded? Method for as.ts() results in error

2010-09-03 Thread Janko Thyson
Dear list, I've got the following problem: In a package I'm trying to build, there exists a method for the function as.ts(). When checking the package, R always throws the error that it cannot find a function called as.ts. To me it seems that the package stats (home of as.ts()) is not

Re: [Rd] Stats not loaded? Method for as.ts() results in error

2010-09-03 Thread Duncan Murdoch
Janko Thyson wrote: Dear list, I've got the following problem: In a package I'm trying to build, there exists a method for the function as.ts(). When checking the package, R always throws the error that it cannot find a function called as.ts. To me it seems that the package stats (home

Re: [Rd] Stats not loaded? Method for as.ts() results in error

2010-09-03 Thread Jeff Ryan
Janko, You don't mention if you are using S3 or S4. A small example would make it easier to identify where your problem is. Jeff On Fri, Sep 3, 2010 at 4:44 AM, Janko Thyson janko.thy...@ku-eichstaett.de wrote: Dear list, I've got the following problem: In a package I'm trying to

Re: [Rd] Stats not loaded? Method for as.ts() results in error

2010-09-03 Thread Janko Thyson
Hi Jeff, sorry for that! I found the problem in the meanwhile. But since I'm always grateful to get answers from the list, here's what happened: I have a method for as.ts() setMethod(f = as.ts, signature = Tsi, definition = function(x, ...) { Function body }) This is the error I