prompt                 package:base                 R Documentation

_P_r_o_d_u_c_e _P_r_o_t_o_t_y_p_e _o_f _a_n _R _D_o_c_u_m_e_n_t_a_t_i_o_n _F_i_l_e

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

     Facilitate the constructing of files documenting R functions.

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

     prompt(object, ...)

     prompt.default(object,
         filename = paste(name, ".Rd", sep = ""),
         force.function = FALSE)

     prompt.data.frame(object,
         filename = paste(name, ".Rd", sep = ""))

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

  object: an R object, typically a function

filename: name of the output file

force.function: treat `object' as function in any case

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

     An ASCII file `filename' is produced containing the proper
     function and argument names of `object'.  You have to edit it
     before adding the documentation to the source tree, i.e.,
     (currently) to `$R_HOME/src/library/base/man/'.

_N_o_t_e:

     The documentation file produced by `prompt.data.frame' does not
     have the same format as many of the data frame documentation files
     in the `base' library.  We are trying to settle on a preferred
     format for the documentation.

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

     Douglas Bates for `prompt.data.frame'

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

     `help' and the chapter on ``Writing R documentation'' in ``Writing
     R Extensions'' (see the `doc/manual' subdirectory of the R source
     tree).

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

     prompt(plot.default)
     prompt(interactive, force.function = TRUE)
     unlink("plot.default.Rd")
     unlink("interactive.Rd")

     data(women)
     prompt(women)
     unlink("women.Rd")

