getClass               package:methods               R Documentation

_G_e_t _C_l_a_s_s _D_e_f_i_n_i_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Get the definition of a class.

_U_s_a_g_e:

     getClass(Class, .Force = FALSE)
     getClassDef(Class, where=-1)

_A_r_g_u_m_e_n_t_s:

   Class: the character-string name of the class.

  .Force: if `TRUE', return `NULL' if the class is undefined;
          otherwise, an undefined class results in an error.

   where: where to search for the definition; by default, anywhere on
          the current search list.

_D_e_t_a_i_l_s:

     A call to `getClass' returns the complete definition of the class
     supplied as a string, including all slots, etc. in classes that
     this class extends.  A call to `getClassDef' returns the
     definition of the class from the environment `where', unadorned. 
     It's usually `getClass' you want.

     If you really want to know whether a class is formally defined,
     call `isClass'.

_V_a_l_u_e:

     The object defining the class.  This is an object of class
     `"classRepEnvironment"'.  However, do not deal with the contents
     of the object directly unless you are very sure you know what
     you're doing.  Even then, it is nearly always better practice to
     use functions such as `setClass' and `setIs'. Messing up a class
     object will cause great confusion.

_A_u_t_h_o_r(_s):

     John Chambers

_R_e_f_e_r_e_n_c_e_s:

     The web page <URL: http://www.omegahat.org/RSMethods/index.html>
     is the primary documentation.

     The functions in this package emulate the facility for classes and
     methods described in Programming with Data (John M. Chambers,
     Springer, 1998).  See this book for further details and examples.

_S_e_e _A_l_s_o:

     Classes, `setClass', `isClass'.

_E_x_a_m_p_l_e_s:

     getClass("numeric") ## a built in class

