Get rid of \addlinespace in kable

You can add the argument linesep = “” to kable. This will be passed on to kable_latex where it overwrites the default linesep = if (booktabs) c(”, ”, ”, ”, ‘\\addlinespace’) else ‘\\hline’ Example: kable(cars, format = “latex”, booktabs = TRUE, linesep = “”)

Can Sweave produce many pdfs automatically?

You can use something like a for loop with a global variable changing, which controls which city you want to weave into the report; see the other post Run Sweave or knitr with objects from existing R session The code will be like (suppose cities is a character vector, and I use the knitr package … Read more