I\'m trying to output a dataframe of about 40 rows and 5 columns to a .pdf file using grid.table in gridExtra package of R.
However, 40 rows is too long for a page
I just used a hack. I printed the table to html using R2HTML and then I converted the html to pdf using wkhtmltopdf.
in R:
library(R2HTML) HTML(table, file="table.html")
in the shell
wkhtmltopdf table.html table.pdf