getRelativePath           package:R.utils           R Documentation

_G_e_t_s _t_h_e _r_e_l_a_t_i_v_e _p_a_t_h_n_a_m_e _r_e_l_a_t_i_v_e _t_o _a _d_i_r_e_c_t_o_r_y

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

     Gets the relative pathname relative to a directory.

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

     ## Default S3 method:
     getRelativePath(pathname, relativeTo=getwd(), caseSensitive=NULL, ...)

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

pathname: A 'character' string of the pathname to be converted into an
          absolute pathname.

relativeTo: A 'character' string of the reference pathname.

caseSensitive: If 'TRUE', the comparison is case sensitive, otherwise
          not.  If 'NULL', it is decided from the relative path.

     ...: Not used.

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

     Returns a 'character' string of the relative pathname.

_N_o_n-_c_a_s_e _s_e_n_s_i_t_i_v_e _c_o_m_p_a_r_i_s_o_n:

     If 'caseSensitive == NULL', the relative path is used to decide if
     the comparison should be done in a case-sensitive mode or not. The
     current check is if it is a Windows path or not, that is, if the
     relative path starts with a device letter, then the comparison is
     non-case sensitive.

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

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

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

     'getAbsolutePath'(). 'isAbsolutePath'().

