showNonASCII package:tools R Documentation _H_i_g_h_l_i_g_h_t _n_o_n-_A_S_C_I_I _c_h_a_r_a_c_t_e_r_s _D_e_s_c_r_i_p_t_i_o_n: This function prints elements of a character vector which contain non-ASCII bytes, printing such bytes as a escape like ''. _U_s_a_g_e: showNonASCII(x) _A_r_g_u_m_e_n_t_s: x: a character vector. _D_e_t_a_i_l_s: This was originally written to help detect non-portable text in files in packages. It prints all lines of the files which contain non-ACII characters, preceded by the line number and with non-ASCII bytes highlighted _via_ 'iconv(sub = "byte")'. _E_x_a_m_p_l_e_s: out <- c( "fa\xE7ile test of showNonASCII():", "\\details{", " This is a good line", " This has an \xfcmlaut in it.", " OK again.", "}") cat(out, file = "my.Rd", sep = "\n") showNonASCII(readLines("my.Rd")) unlink("my.Rd")