Tag Info

New answers tagged


I just found a workaround for how to get rid of the extra blank lines introduced by n.rgroup. Below I copied the code from Alan Munn's answer and enclosed the latex(...) part as follows (as BondedDust suggested in this answer to another question): out <- sub("&&\\\\tabularnewline", "", capture.output( latex(...) )) Adding writeLines(out)then ...


There are basically two things causing errors in your sample code: By default, knitr prefixes R output with ##, which can't be present in your TeX file. You have to substitute something else for it. Code chunks can't be indented, so you'll have to excuse your OCD self and flush the chunk to the left of your source code. So this alone makes improves your ...

Top 50 recent answers are included