fileWizard             package:tkWidgets             R Documentation

_A _f_u_n_c_t_i_o_n _t_h_a_t _i_m_p_o_r_t _a _t_e_x_t _f_i_l_e _i_n_t_o _R

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

     Given a file name, this function imports the text file into R.

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

     fileWizard(filename = "", fun = read.table, file = "file",
     basic = c("header", "sep"), getFocus = TRUE)

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

filename: A character string for the name of the text file to be
          imported

     fun: An R function that is going to be used to read the file.
          Default to    'read.table'

    file: A character string for the name of the argument to fun that
          defines the name of the file to be read

   basic: A vector of character strings for names of the arguments to
          fun that will have separate entry boxes on the widget to be
          produced. Default to "header" and "sep"

getFocus: 'getFocus' a boolean indicating whether a widget should grab
          the focus

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

     This function is only partially finished and will be improved
     soon. It currently allows uesrs to view a given file and change
     the settings for header and sep arguments of read.table. A file
     will be read in based on the values of the two arguments and
     return.

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

     This function returns a data frame for the file read in.

_N_o_t_e:

     This function is part of the Bioconductor project at Dana-Farber
     Cancer Institute to provide Bioinformatics functionalities through
     R

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

     Jianhua Zhang

_R_e_f_e_r_e_n_c_e_s:

     R News Vol. 1/3, September 2001

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

     'fileBrowser'

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

     if(interactive()) {
       # Only the interface is displyed as no real file is given
       fileWizard()  
     }

