RShowDoc                package:utils                R Documentation

_S_h_o_w _R _M_a_n_u_a_l_s _a_n_d _O_t_h_e_r _D_o_c_u_m_e_n_t_a_t_i_o_n

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

     Utility function to find and display R documentation.

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

     RShowDoc(what, type = c("pdf", "html", "txt"), package)

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

    what: a character string: see 'Details'.

    type: an optional character string giving the preferred format.

 package: an optional character string specifying the name of a package
          within which to look for documentation.

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

     'what' can specify one of several different sources of
     documentation, including the R manuals ('R-admin', 'R-data',
     'R-exts', 'R-intro', 'R-ints', 'R-lang'), 'NEWS', 'COPYING' (the
     GPL licence), 'FAQ' (also available as 'R-FAQ'), and the files in
     'R_HOME/doc'.

     If 'package' is supplied, documentation is looked for in the 'doc'
     and top-level directories of an installed package of that name.

     If 'what' is missing a brief usage message is printed.

     The documentation types are tried in turn starting with the first
     specified in 'type' (or '"pdf"' if none is specified).

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

     A invisible character string given the path to the file found.

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

     ## Not run: 
     RShowDoc("R-lang")
     RShowDoc("FAQ", type="html")
     RShowDoc("frame", package="grid")
     RShowDoc("changes.txt", package="grid")
     RShowDoc("NEWS", package="MASS")
     ## End(Not run)

