normalizePath             package:utils             R Documentation

_E_x_p_r_e_s_s _F_i_l_e _P_a_t_h_s _i_n _C_a_n_o_n_i_c_a_l _F_o_r_m

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

     Convert file paths to canonical form for the platform, to display
     them in a user-understandable form.

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

     normalizePath(path)

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

    path: character vector of file paths.

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

     Where the platform supports it this turns paths into absolute
     paths in their canonical form (no './', '../' nor symbolic links).

     If the path is not a real path the result is undefined but will
     most likely be the corresponding input element.

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

     A character vector.

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

     cat(normalizePath(c(R.home(), tempdir())), sep = "\n")

