Fa2latex produces latex code that does not compile when produced in a Rmarkdown code chunk
问题 I'm having difficulty using psych::fa2latex in the context of an RMarkdown document to produce a factor analysis result. If you just run the first bit of code in an RMarkdown document in RStudio (1.0.153), you get an error message : " LaTeX Error: \caption outside float” and the document does not compile. Thanks for any help. ##Place In RMarkdown Document, save and compile. --- title: "Test" author: "Simon Kiss" date: '2018-01-09' output: pdf_document --- ```{r setup, include=FALSE} knitr: