selectOption            package:goCluster            R Documentation

_A _m_e_n_u _f_o_r _c_h_o_o_s_i_n_g _a_n _o_p_t_i_o_n

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

     The function generates a menu that allows the user to choose
     amongst the options specified. 'selectOption' allows to select
     only one of the options while 'selectOptions' will allow the user
     to select several of them.

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

     selectOption(options, message)
     selectOptions(options, message, all)

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

 options: The available options as character vector.

 message: The informational message that will be shown together with
          the menu.

     all: An additional string that allows to select all options at the
          same time.

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

     'selectOption' will offer a menu to choose one of the options
     given by the character vector 'options'. 'selectOptions' will
     offer a similar menu but the user can choose several options.

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

     The option(s) chosen by the user are being returned as a character
     vector.

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

     Gunnar Wrobel, <URL: http://www.gunnarwrobel.de>.

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

     'selectCore', 'selectDouble', 'selectNumber'.

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

     if(interactive()){
     ## This example can only be run in an interactive mode

     selectOption(c("A","B","C"), "Please choose one of the following options")
     }

