path.expand package:base R Documentation _E_x_p_a_n_d _F_i_l_e _P_a_t_h_s _D_e_s_c_r_i_p_t_i_o_n: Expand a path name, for example by replacing a leading tilde by the user's home directory (if defined on that platform). _U_s_a_g_e: path.expand(path) _A_r_g_u_m_e_n_t_s: path: character vector containing one or more path names. _D_e_t_a_i_l_s: On _some_ Unix versions, a leading '~user' will expand to the home directory of 'user', but not on Unix versions without 'readline' installed, nor if R is invoked with '--no-readline'. _S_e_e _A_l_s_o: 'basename' _E_x_a_m_p_l_e_s: path.expand("~/foo")