If this happens, if you have output in a character vector (i.e. you use something like cat(<something>)that to write it to the console), you can use a function writeLines, for example:
writeLines(<something>,"filename.txt")
However, the best way to make a LaTeX file in R is to use Sweave or create a brew template.
source
share