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. On
     Unix-alikes, this will likely be the corresponding input element.
     On Windows, it will likely result in an error being signalled.

_V_a_l_u_e:

     A character vector.

_E_x_a_m_p_l_e_s:

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

