st2doc.Rd
Please consider using st2article()
rather than this function. It does the
same thing and likely will replace st2doc()
.
st2doc( text, preview = TRUE, output_dir = tempdir(), output_file = "st2doc.pdf", landscape = is_lscape(text) )
text |
|
---|---|
preview | if |
output_dir | passed to |
output_file | passed to |
landscape | passed to |
the text
is returned invisibly
In order to render the table in the pdf document, the following packages must be installed, regardless of the type of table you are trying to render:
threeparttable
booktabs
array
longtable
mathpazo
pdflscape
if (FALSE) { library(dplyr) ptdata() %>% stable() %>% st2doc() } template <- system.file("rmd", "st2doc.Rmd", package = "pmtables") # cat(readLines(template), sep = "\n")