CompletePlus             package:svMisc             R Documentation

_G_e_t _c_o_m_p_l_e_t_i_o_n _a_n_d _a_d_d_i_t_i_o_n_a_l _i_n_f_o_r_m_a_t_i_o_n _f_r_o_m _a_n _R _c_o_d_e _f_r_a_g_m_e_n_t

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

     The function generates completion possibilities and investigate
     within the R help file to gather information about each
     completion.

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

     CompletePlus(linebuffer, cursorPosition = nchar(linebuffer), minlength = 2,
     simplify = FALSE, types = c("arguments", "functions", "packages"))

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

linebuffer: R code fragment 

cursorPosition: Position of the cursor in the fragment 

minlength: Minimum size the fragment needs to be to perform the
          completion 

simplify: Logical. If TRUE, then the result is printed in strings with
          tabulation as field separators. 

   types: Which types of items should we be looking for? 

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

     The information given back depends on the kind of completion
     performed. If a potential completion ends with the equal sign,
     then 'CompletePlus' tries to get information on the argument from
     the guessed function. If the potential completion ends with '::',
     then the 'CompletePlus' gets information about the package. If the
     potential completion is a function, then 'CompletePlus' retrieves
     the title of the function as documented in the man page, if the
     function is documented.

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

     Either a matrix giving completion information. If simplify is set
     to TRUE, nothing is returned but the result is 'cat' directly to
     the console.

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

     Romain Francois <rfrancois@mango-solutions.com>

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

     'Complete', 'descFun'

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

     CompletePlus("dn")

