toHTML                  package:XML                  R Documentation

_C_r_e_a_t_e _a_n _H_T_M_L _r_e_p_r_e_s_e_n_t_a_t_i_o_n _o_f _t_h_e _g_i_v_e_n _R _o_b_j_e_c_t, _u_s_i_n_g
_i_n_t_e_r_n_a_l _C-_l_e_v_e_l _n_o_d_e_s

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

     This generic function and the associated methods are intended to
     create an HTML tree that represents the R object in some
     intelligent manner. For example, we represent a vector as a table
     and we represent a matrix also as a table.

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

     toHTML(x, context = NULL)

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

       x: the R object which is to be represented via an HTML tree 

 context: an object which provides context in which the node will be
          used. This is currently arbitrary. It may be used, for
          example, when creating HTML for R documentation and providing
          information about variabes and functions that are available
          on that page and so have internal links. 

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

     It would be nicer if we could pass additional arguments to control
     whether the outer/parent layer is created, e.g. when reusing code
     for a vector for a row of a matrix.

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

     an object of class 'XMLInternalNode'

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

     Duncan Temple Lang

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

     The 'R2HTML' package.

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

      cat(as(toHTML(rnorm(10)), "character"))

