<div dir="ltr"><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2584" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">Bom dia, </div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2584" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br></div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2584" dir="ltr" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">Estou trabalhando com o R Markdown e preciso fazer uma tabela longa parecida com o exemplo abaixo.</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2584" dir="ltr" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">O problema é que aparentemente o caption = "Número de registros" está gerando um erro. Ao retirar o acento, ou seja, escrever caption = "Numero de registros" o código funciona. Porém não gostaria de retirar os acentos. Alguém já teve esse tipo de problema? </div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2584" dir="ltr" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br></div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2584" dir="ltr" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br></div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2804" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">```{r, echo=FALSE, result = 'asis'}</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2805" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">library(kableExtra)</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2806" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">library(knitr)</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2807" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">options(knitr.table.format = "latex")</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2808" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2809"></div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2810" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">long_dt <- rbind(mtcars, mtcars)</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2811" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">kable(long_dt, longtable = T, booktabs = T, caption = "Número de registros") %>%</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2812" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">add_header_above(c(" ", "Group 1" = 5, "Group 2" = 6)) %>%</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2813" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">kable_styling(latex_options = c("repeat_header"))</div><div id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2814" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2815"></div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2816" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">```</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_2816" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br></div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3021" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">No cabeçalho o R Markdown incluí os seguintes pacotes do Latex, mas o erro se manteve. </div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3022" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3023"></div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3024" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">---</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3025" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">output: </div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3026" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">  pdf_document:</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3027" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">    keep_tex: true</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3028" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">    fig_caption: true</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3029" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">    latex_engine: pdflatex</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3030" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">header-includes:<br></div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3033" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">   - \usepackage[brazilian]{babel} # idioma</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3034" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">   - \usepackage[utf8]{inputenc}  # acento</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3035" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">--</div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3035" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br></div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3035" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">Muito obrigada, </div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3035" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px"><br></div><div dir="ltr" id="gmail-yiv2302188493yui_3_16_0_ym19_1_1504042233183_3035" style="color:rgb(0,0,0);font-family:標楷體,dfkai-sb;font-size:16px">Carolina Pena  </div>
</div>