[Rd] Stats not loaded? Method for as.ts() results in error
Duncan Murdoch
murdoch.duncan at gmail.com
Fri Sep 3 13:45:56 CEST 2010
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
>
More information about the R-devel
mailing list