getParent              package:R.utils              R Documentation

_G_e_t_s _t_h_e _s_t_r_i_n_g _o_f _t_h_e _p_a_r_e_n_t _s_p_e_c_i_f_i_e_d _b_y _t_h_i_s _p_a_t_h_n_a_m_e

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

     Gets the string of the parent specified by this pathname. This is
     basically, by default the string before the last path separator of
     the absolute pathname.

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

     ## Default S3 method:
     getParent(pathname, depth=1, fsep=.Platform$file.sep, ...)

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

pathname: A 'character' string of the pathname to be checked.

   depth: An 'integer' specifying how many generations up the path
          should go.

    fsep: A 'character' string of the file separator.

     ...: Not used.

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

     Returns a 'character' string if the parent exists, otherwise
     'NULL'.

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

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

