HTML                 package:R2HTML                 R Documentation

_O_u_t_p_u_t_s _a_n _o_b_j_e_c_t _t_o _a _H_T_M_L _f_i_l_e

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

     Generic method equivalent to print that performs HTML output for
     any R object.

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

     HTML(x, ...)

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

       x: R object to export 

     ...: ...

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

     'HTML' function acts like 'cat', with a 'file' argument, which has
     to be used and a 'append' argument, which is set by default to
     TRUE. A convenient default value for 'file' argument is set to
     hidden variable '.HTML.file', so that one may begin to set this
     variable and omit the argument thereafter. Most of the current
     classes are handled by 'HTML' function. Some specific methods such
     as 'HTML.matrix' or 'HTML.data.frame' do own a lot of arguments to
     precise the way the data are exported.

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

     no value returned.

_N_o_t_e:

     For a discussion about .HTML.file default value for file argument,
     refer to 'HTMLStart'

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

     Eric Lecoutre

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

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

     'HTML.data.frame','HTML.function',  'HTMLStart'

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

     dir.create(file.path(tempdir(),"R2HTML"))
     target <- HTMLInitFile(file.path(tempdir(),"R2HTML"),filename="sample", BackGroundColor="#BBBBEE")
     HTML("<br>Don't forget to use the CSS file in order to benefit from fixed size police",file=target)
     tmp <- as.data.frame(matrix(rnorm(100),ncol=10))
     HTML(tmp,file=target)
     HTMLEndFile()

