saveTable: save labelled dataframe to html and pdf file silently

Description Usage Arguments Examples

View source: R/huxtableUtils.R

Description

save labelled dataframe to html and pdf file silently

Usage

1
2
3
4
5
6
7
8
saveTable(
  labelledDataframe,
  filename,
  pageWidth = 5.9,
  defaultFontSize = 10,
  tableWidth = NULL,
  colWidths = NULL
)

Arguments

filename

file of desired output without extension.

pageWidth

maximum width of the desired pdf output in inches (5.9)

defaultFontSize

default size of font in points (10)

tableWidth

width of the table in inches or NULL to fit contents automatically

colWidths

a vector of relative column widths

labelledDataFrame

e.g. select(dataframe,"col 1 title"=col1)

Examples

1
2
setwd(tempdir())
hux(iris) %>% saveTable("iris")

terminological/standard-print-output documentation built on July 18, 2021, 9:29 a.m.