Output of fa2latex command from psych causing LaTeX error in pandoc

别说谁变了你拦得住时间么 提交于 2019-12-12 02:26:58

问题


I am writing a report using knitr in RStudio. Also using the psych package for factor analysis:

```{r, results='asis'}
library(psych)
data(Thurstone)
fa.Thurstone<-fa(Thurstone)
fa2latex(fa.Thurstone)
```

When I run this code chunk it causes an error:

! LaTeX Error: Unknown float option `d'.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.124 \begin{scriptsize} \begin{table}[htdp]

pandoc: Error producing PDF from TeX source
Error: pandoc document conversion failed with error 43

When I save the TeX code it runs fine in LaTeX, but not in knitr.

Any suggestions on how to resolve this?

来源:https://stackoverflow.com/questions/31024409/output-of-fa2latex-command-from-psych-causing-latex-error-in-pandoc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!