st2doc | R Documentation |
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 |
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
the text
is returned invisibly
st2article()
, st2report()
, st2viewer()
## Not run:
library(dplyr)
ptdata() %>% stable() %>% st2doc()
## End(Not run)
template <- system.file("rmd", "st2doc.Rmd", package = "pmtables")
# cat(readLines(template), sep = "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.