r - Making nicely formated tables in Markdown: knitr not compiling stargazer>html table -



r - Making nicely formated tables in Markdown: knitr not compiling stargazer>html table -

i'm trying embed output table, nicely formatted stargazer function, in markdown document.

i tried embedding stargazer() in r code block in rmd document:

```{r} library(stargazer) stargazer(cor(attitude), type="html") ```

the code runs correctly, outputs html code in turn not parsed knitr, actual table html 'source' code shown in rendered document.

i'm aware of similar question (here). i'm asking separate question because answers there indicate stargazer not back upwards html output, no longer true. html back upwards incorporated stargazer after tread (and don´t have engouth rep reopen or post comments there).

this seems related more simple problem of making knitr compile html table source code.

edit: @hrbrmstr gave me reply in comment bellow, is:

```{r results='asis'} library(stargazer) stargazer(cor(attitude), type="html") ```

html r knitr stargazer

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -