From murdoch.duncan at gmail.com  Fri Sep  3 13:45:56 2010
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 03 Sep 2010 07:45:56 -0400
Subject: [Rd] Stats not loaded? Method for as.ts() results in error
In-Reply-To: <000301cb4b4c$91965fa0$b4c31ee0$@thyson@ku-eichstaett.de>
References: <000301cb4b4c$91965fa0$b4c31ee0$@thyson@ku-eichstaett.de>
Message-ID: <4C80DFF4.4000206@gmail.com>

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 of "as.ts()") is not loaded during the checking process even
> though it's a base package. For testing, I've written a method for "plot()"
> to see if it's a general problem with base-functions, but this one passes
> just fine.
>   

Are you using a NAMESPACE, and declaring your method as a method?  If 
you don't, R will have to guess what the methods are, and it might be 
getting mixed up because of the unusual name of the generic.

Duncan Murdoch


>  
>
> Did anyone of encounter a similar problem or could help me out with a hint?
>
>  
>
> Thank you very much,
>
> Janko
>
>  
>
>   
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



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