isHelp                package:svMisc                R Documentation

_I_s _t_h_e_r_e _a _h_e_l_p _f_i_l_e _a_n_d _e_x_a_m_p_l_e _t_o _r_u_n _a_s_s_o_c_i_a_t_e_d _w_i_t_h _a_n _o_b_j_e_c_t?

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

     Determine if 'topic' has a help file and example to run.

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

     isHelp(topic, package = NULL, lib.loc = NULL)

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

   topic: name or literal character string: the online help topic to
          look for. 

 package: a character vector giving the package names to look into for
          help or example code, or 'NULL'. By default, all packages in
          the search path are used. 

 lib.loc: a character vector of directory names of R libraries, or
          'NULL'. The default value of 'NULL' corresponds to all
          libraries currently known. If the default is used, the loaded
          packages are searched before the libraries. 

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

     A logical vector with two elements. The first one indicating if
     there is a help file, and the second one indicating if there are
     examples associated with this help file.

_N_o_t_e:

     This code is largely inspired from the first part of 'example()'.

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

     Philippe Grosjean <phgrosjean@sciviews.org>

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

     isHelp("help")          # Help and example
     isHelp("Rtangle")       # Help but no example
     isHelp("notopic")       # No help or example

