简体   繁体   English

在R markdown中嵌入现有HTML

[英]Embedding existing HTML in R markdown

Simple question, 简单的问题,
is there a function to embedded an existing HTML output, in this case a table output from the stargazer package in R into an R Markdown script? 是否有嵌入现有HTML输出的函数,在这种情况下,从R中的stargazer包输出到R Markdown脚本的表格?

Horrible cluge, but this is what I did to get an html table into a xargian slide (based on another stack overflow answer). 可怕的cluge,但这是我做的一个html表进入xargian幻灯片(基于另一个堆栈溢出答案)。 The line showed up in the slide unless I stripped it out. 除非我将它剥离,否则该线显示在幻灯片中。

```{r, echo = FALSE, results='asis'}
t <-readLines("your_html.html")
len <- length(t)-1
cat(t[2:len])
```

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM