Use the following code and you get a working version
```{r, results="asis"}
stargazer(model)
```
When converting to pdf, the following code works perfectly for stargazer 4.0:
```{r, results="asis"}
stargazer(model, header=FALSE, type="latex")
```
More Related Contents:
- YAML current date in rmarkdown
- How to combine two RMarkdown (.Rmd) files into a single output?
- Using loops with knitr to produce multiple pdf reports… need a little help to get me over the hump
- How to use objects from global environment in Rstudio Markdown
- knitr/rmarkdown/Latex: How to cross-reference figures and tables?
- Print “pretty” tables for h2o models in R
- Generate Dynamic R Markdown Blocks
- Subfigures or Subcaptions with knitr?
- R knitr: Possible to programmatically modify chunk labels?
- Conditionally display a block of text in R Markdown
- Align multiple tables side by side
- two-column layouts in RStudio presentations/slidify/pandoc
- R Markdown – variable output name
- Code chunk font size in Rmarkdown with knitr and latex
- knitr gets tricked by data.table `:=` assignment
- Can Sweave produce many pdfs automatically?
- knitr: How to prevent text wrapping in output?
- r knitr chunk options for figure height / width are not working
- Create a loop that includes both a code chunk and text
- Insert a logo in upper right corner of R markdown pdf document
- Use loop to generate section of text in rmarkdown
- Add an image to a table-like output in R
- Plot size and resolution with R markdown, knitr, pandoc, beamer
- Specify height and width of ggplot graph in Rmarkdown knitr output
- New R-Studio version 0.98.932 deletes .md file – how to prevent?
- Reduce file size of R Markdown HTML output
- Wrap text around plots in Markdown
- Create parametric R markdown documentation?
- Knit one markdown file to two output files
- Setting work directory in knitr using opts_chunk$set(root.dir = …) doesn’t work