getExt              package:reposTools              R Documentation

_G_e_t _f_i_l_e _e_x_t_e_n_s_i_o_n _h_e_l_p_e_r _f_u_n_c_t_i_o_n

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

     Return the file extension.

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

     getExt(path)

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

    path: What to get the extension of

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

     character.  The extension.

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

     S. Falcon

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

     ##---- Should be DIRECTLY executable !! ----
     ##-- ==>  Define data, use random,
     ##--    or do  help(data=index)  for the standard data sets.

     ## The function is currently defined as
     function (path) 
     {
         parts <- strsplit(path, "\.")[[1]]
         last <- parts[length(parts)]
         last
       }

