

example {base}                               R Documentation

_R_u_n _a_n _E_x_a_m_p_l_e_s _S_e_c_t_i_o_n _f_r_o_m _t_h_e _O_n_l_i_n_e _H_e_l_p

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

     Run all the R code from the `EXAMPLES' part of R's
     online help topic `topic'.

_U_s_a_g_e_:

     example(topic, package= .packages(), lib=.lib.loc,
             echo=TRUE, verbose=.Options$verbose,
             prompt.echo = paste(abbreviate(topic, 6),"> ", sep=""),
             directory.sep= "/")

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

   topic: name or character:  The online `help' topic the
          examples of which should be run.

 package: a character vector with package names.

     lib: a character vector with path names of R package
          libraries.

    echo: logical;  if `TRUE', show the R input when sourc-
          ing.

 verbose: logical;  if `TRUE', show even more when running
          example code.

prompt.echo: character; gives the prompt to be used if `echo
          = TRUE'.

directory.sep: character; the directory separating character
          (an idea to make this OS independent).

_V_a_l_u_e_:

     (the value of the last evaluated expression).

_N_o_t_e_:

     The examples can be many small files. On some file sys-
     tems it is desirable to save space, and the files in
     the `R-ex' directory of an installed package can be
     zipped up as a zip archive `Rex.zip'.

_A_u_t_h_o_r_(_s_)_:

     Martin Maechler

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

     `demo'

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

     example("smooth", package="eda")
     example(dbinom)

