如何在rmd文件中的LaTeX代码中包含R代码块?

时间:2015-03-19 13:36:46

标签: r latex knitr r-markdown

以下不起作用:

\begin{itemize}

  \item The first item
  \item 
    ```{r}
    x <- 3
    ```
  \item The third etc \ldots

\end{itemize}

有没有办法做到这一点,还是我必须将文件重写为.rnw?

谢谢!

0 个答案:

没有答案