Janko Thyson
2010-Sep-03 09:44 UTC
[Rd] Stats not loaded? Method for as.ts() results in error
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. Did anyone of encounter a similar problem or could help me out with a hint? Thank you very much, Janko
Duncan Murdoch
2010-Sep-03 11:45 UTC
[Rd] Stats not loaded? Method for as.ts() results in error
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 >
Jeff Ryan
2010-Sep-03 13:56 UTC
[Rd] Stats not loaded? Method for as.ts() results in error
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.thyson at ku-eichstaett.de> 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. > > > > 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 > >-- Jeffrey Ryan jeff.a.ryan at gmail.com
Apparently Analagous Threads
- Problems building own package (Error: "package has been build before R-2.10.0")
- Problems building own package (Error: "package has been build before R-2.10.0")
- Bug or feature: using "ANY" as a generic field class (was: '[R] Is there a (virtual) class that all R objects inherit from?)
- Reference Classes: removing methods -> implications for objects/instances of that class
- Roxygen: @example tag does not work for me