Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rmarkdown不理解表的代码_R_Datatable_R Markdown - Fatal编程技术网

Rmarkdown不理解表的代码

Rmarkdown不理解表的代码,r,datatable,r-markdown,R,Datatable,R Markdown,我想在Rmarkdown中创建一个简单的表: | Droite | Gauche | Défaut | Centré | |-------:|:-------|--------|:------:| | 12 | 12 | 12 | 12 | | 123 | 123 | 123 | 123 | | 1 | 1 | 1 | 1 | Table: an exemple 它只是在弹出以下消息时不起作用: output file: essai.knit.md ! Undefined control

我想在Rmarkdown中创建一个简单的表:

| Droite | Gauche | Défaut | Centré |
|-------:|:-------|--------|:------:|
| 12 | 12 | 12 | 12 |
| 123 | 123 | 123 | 123 |
| 1 | 1 | 1 | 1 |  
Table: an exemple
它只是在弹出以下消息时不起作用:

output file: essai.knit.md

! Undefined control sequence.
<argument> \@@magyar@captionfix 

Erreur : LaTeX failed to compile essai.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See essai.log for more info.
Exécution arrêtée
输出文件:essai.knit.md
! 未定义的控制序列。
\@@magyar@captionfix 
错误:LaTeX未能编译essai.tex。看见https://yihui.org/tinytex/r/#debugging 有关调试提示。有关更多信息,请参阅essai.log。
执行协议

df你能分享你的降价脚本吗?虽然这段代码可能会解决这个问题,但如何以及为什么这会真正有助于提高你的文章质量,并可能导致更多的投票。请记住,你是在将来回答读者的问题,而不仅仅是现在提问的人。请在回答中添加解释,并说明适用的限制和假设。
df <- data.frame(droite=c(12,123,1),
                 gauche=c(12,123,1),
                 defaut=c(12,123,1),
                 centre=c(12,123,1))