s-news
[Top] [All Lists]

[S] Re: setMethod

To: S NEWS international <s-news@wubios.wustl.edu>
Subject: [S] Re: setMethod
From: Mika Nakazono <mika@msi.co.jp>
Date: Tue, 27 Apr 1999 13:36:56 +0900 (JST)
In-reply-to: <199904270414.NAA19185@cabbage.math.keio.ac.jp>
References: <199904270414.NAA19185@cabbage.math.keio.ac.jp>
Sender: owner-s-news@wubios.wustl.edu
Dear S-users,

Just before I posted a question concerning "setMethod", and I found one
solution,

> Now I'm reading "PROGRAMMING WITH DATA", with accessing to S-PLUS 5.0 
> on Solaris. Then, I have some question. 
> As mentioned on page 34, I tried to implement a method for a function named 
> "whatis",
> 
> >setMethod("whatis","vector",function(object)
>       paste(class(object),"vector of length", length(object))
> 
> But I got an error message as a result, 
> 
> >Problem in initMethods(where): database ".Data" has no meta-database; can't
> be used for methods/classes

After I made a directory named "__Meta" under .Data, I reached to
implement a method for the function.
But why?


Mika

Mika Nakazono
Mathmatical Systems Inc., Japan



-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Re: setMethod, Mika Nakazono <=