0

I'm running this code in Texmaker 4.1 on Ubuntu Linux and for some reason the "echo = FALSE" option is not deleting the code from the final pdf. Any suggestions what I'm doing wrong?

\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}
tonytonov
  • 25,060
  • 16
  • 82
  • 98
Jim Maas
  • 1,481
  • 2
  • 16
  • 36
  • I've compiled the document in RStudio (viewer=Okular) and no code is presented... – gagolews Apr 27 '14 at 09:24
  • Does that mean it should do the same from Texmaker? – Jim Maas Apr 27 '14 at 09:27
  • Well, I think that RStudio and Texmaked use the same knitr and TeX compiler, so the output should be the same (are you sure you are able to produce the figure in this example)? – gagolews Apr 27 '14 at 09:35

0 Answers0