为什么texmaker不会隐藏R代码?

时间:2014-04-25 14:14:35

标签: linux r knitr texmaker

我在Ubuntu Linux上的Texmaker 4.1中运行此代码,出于某种原因," echo = FALSE"选项不会删除最终pdf中的代码。我有什么建议吗?

\documentclass{article}

\usepackage[utf8]{inputenc}

\begin{document}

Using R, we can plot the graph of $f(x) = \sin(x)$:

<< echo = FALSE  >>=
x = (1:50)/10
plot(x, sin(x))
@

\end{document}

0 个答案:

没有答案