I am using the 'compile pdf' button in a .Rnw file in Rstudio, including the following:
<<longterm1, results=tex, echo=FALSE>>= print(xtable(longterm), include.rownames=FALSE, floating=FALSE) @
But I receive a pop-up message,
'it seems you are using sweave-specific syntax .... you may need sweave2knitr ... to convert it to knitr'
pdflatex is installed and on my path, so I do not understand what I am doing wrong (I am a latex beginner though). How can I get this to work?