I am trying to run this Sweave code in R.
\documentclass{article}
\begin{document}
\SweaveOpts{concordance=TRUE}
\section{Section}
I am citing \cite{ftest}.
\begin{thebibliography}{9}
\bibitem{ftest}http://www.mattblackwell.org/files/teaching/ftests.pdf
\end{thebibliography}
\end{document}
Now, everything runs fine, but I'm getting the warnings:
Citation `ftest' on page 1 undefined on input line 8.
There were undefined references.
Label(s) may have changed. Rerun to get cross-references right.
In the generated pdf, I get the references section and the referred link, but in the section, it shows:
"I am citing [?]."
My configuration is:
- Ubuntu 12.04
- pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
- R version 3.0.0 (2013-04-03) -- "Masked Marvel"
PS:
- I am new to LaTeX so please let me know if I can provide any additional information.
- @Admins: I was not sure whether this is the right forum to post this, given that it is R specific, so please move it to the appropriate location.
\SweaveOptsline) and it worked fine for me. Note that you have to run LaTeX twice before the references show up properly. – John Wickerson May 24 '13 at 09:55