Debian Codegraph @

man/panderOptions.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/options.R
3 \name{panderOptions}
4 \alias{panderOptions}
5 \title{Querying/setting pander option}
6 \usage{
7 panderOptions(o, value)
8 }
9 \arguments{
10 \item{o}{option name (string). See below.}
11
12 \item{value}{value to assign (optional)}
13 }
14 \description{
15 To list all \code{pander} options, just run this function without any parameters provided. To query only one value, pass the first parameter. To set that, use the \code{value} parameter too.
16 }
17 \details{
18 The following \code{pander} options are available:
19
20 \itemize{
21 \item \code{digits}: numeric (default: \code{2}) passed to \code{format}. Can be a vector specifying values for each column (has to be the same length as number of columns). Values for non-numeric columns will be disregarded.
22 \item \code{decimal.mark}: string (default: \code{.}) passed to \code{format}
23 \item \code{formula.caption.prefix}: string (default: \code{'Formula: '}) passed to \code{\link{pandoc.formula}} to be used as caption prefix. Be sure about what you are doing if changing to other than \code{'Formula: '} or \code{':'}.
24 \item \code{big.mark}: string (default: '') passed to \code{format}.
25 \item \code{round}: numeric (default: \code{Inf}) passed to \code{round}. Can be a vector specifying values for each column (has to be the same length as number of columns). Values for non-numeric columns will be disregarded.
26 \item \code{keep.trailing.zeros}: boolean (default: \code{FALSE}) to show or remove trailing zeros in numbers
27 \item \code{keep.line.breaks}: boolean (default: \code{FALSE}) to keep or remove line breaks from cells in a table
28 \item \code{missing}: string (default: \code{NA}) to replace missing values in vectors, tables etc.
29 \item \code{date}: string (default: \code{'\%Y/\%m/\%d \%X'}) passed to \code{format} when printing dates (\code{POSIXct} or \code{POSIXt})
30 \item \code{header.style}: \code{'atx'} or \code{'setext'} passed to \code{\link{pandoc.header}}
31 \item \code{list.style}: \code{'bullet'}, \code{'ordered'} or \code{'roman'} passed to \code{\link{pandoc.list}}. Please not that this has no effect on \code{pander} methods.
32 \item \code{table.style}: \code{'multiline'}, \code{'grid'}, \code{'simple'} or \code{'rmarkdown'} passed to \code{\link{pandoc.table}}
33 \item \code{table.emphasize.rownames}: boolean (default: \code{TRUE}) if row names should be highlighted
34 \item \code{table.split.table}: numeric passed to \code{\link{pandoc.table}} and also affects \code{pander} methods. This option tells \code{pander} where to split too wide tables. The default value (\code{80}) suggests the conventional number of characters used in a line, feel free to change (e.g. to \code{Inf} to disable this feature) if you are not using a VT100 terminal any more :)
35 \item \code{table.split.cells}: numeric or numeric vector (default: \code{30}) passed to \code{\link{pandoc.table}} and also affects \code{pander} methods. This option tells \code{pander} where to split too wide cells with line breaks. Numeric vector specifies values for cells separately. Set \code{Inf} to disable.
36 \item \code{table.caption.prefix}: string (default: \code{'Table: '}) passed to \code{\link{pandoc.table}} to be used as caption prefix. Be sure about what you are doing if changing to other than \code{'Table: '} or \code{':'}.
37 \item \code{table.continues}: string (default: \code{'Table continues below'}) passed to \code{\link{pandoc.table}} to be used as caption for long (split) without a use defined caption
38 \item \code{table.continues.affix}: string (default: \code{'(continued below)'}) passed to \code{\link{pandoc.table}} to be used as an affix concatenated to the user defined caption for long (split) tables
39 \item \code{table.alignment.default}: string (default: \code{centre}) that defines the default alignment of cells. Can be \code{left}, \code{right} or \code{centre} that latter can be also spelled as \code{center}.
40 \item \code{table.alignment.rownames}: string (default: \code{centre}) that defines the alignment of rownames in tables. Can be \code{left}, \code{right} or \code{centre} that latter can be also spelled as \code{center}.
41 \item \code{use.hyphening}: boolean (default: \code{FALSE}) if try to use hyphening when splitting large cells according to table.split.cells. Requires \pkg{sylly}.
42 \item \code{evals.messages}: boolean (default: \code{TRUE}) passed to \code{evals}' \code{pander} method specifying if messages should be rendered
43 \item \code{p.wrap}: a string (default: \code{'_'}) to wrap vector elements passed to \code{p} function
44 \item \code{p.sep}: a string (default: \code{', '}) with the main separator passed to \code{p} function
45 \item \code{p.copula}: a string (default: \code{' and '}) with ending separator passed to \code{p} function
46 \item \code{plain.ascii}: boolean (default: \code{FALSE}) to define if output should be in plain ascii or not
47 \item \code{graph.nomargin}: boolean (default: \code{TRUE}) if trying to keep plots' margins at minimal
48 \item \code{graph.fontfamily}: string (default: \code{'sans'}) specifying the font family to be used in images. Please note, that using a custom font on Windows requires \code{grDevices:::windowsFonts} first.
49 \item \code{graph.fontcolor}: string (default: \code{'black'}) specifying the default font color
50 \item \code{graph.fontsize}: numeric (default: \code{12}) specifying the \emph{base} font size in pixels. Main title is rendered with \code{1.2} and labels with \code{0.8} multiplier.
51 \item \code{graph.grid}: boolean (default: \code{TRUE}) if a grid should be added to the plot
52 \item \code{graph.grid.minor}: boolean (default: \code{TRUE}) if a miner grid should be also rendered
53 \item \code{graph.grid.color}: string (default: \code{'grey'}) specifying the color of the rendered grid
54 \item \code{graph.grid.lty}: string (default: \code{'dashed'}) specifying the line type of grid
55 \item \code{graph.boxes}: boolean (default: \code{FALSE}) if to render a border around of plot (and e.g. around strip)
56 \item \code{graph.legend.position}: string (default: \code{'right'}) specifying the position of the legend: 'top', 'right', 'bottom' or 'left'
57 \item \code{graph.background}: string (default: \code{'white'}) specifying the plots main background's color
58 \item \code{graph.panel.background}: string (default: \code{'transparent'}) specifying the plot's main panel background. Please \emph{note}, that this option is not supported with \code{base} graphics.
59 \item \code{graph.colors}: character vector of default color palette (defaults to a colorblind theme: \url{https://jfly.uni-koeln.de/color/}). Please \emph{note} that this update work with \code{base} plots by appending the \code{col} argument to the call if not set.
60 \item \code{graph.color.rnd}: boolean (default: \code{FALSE}) specifying if the palette should be reordered randomly before rendering each plot to get colorful images
61 \item \code{graph.axis.angle}: numeric (default: \code{1}) specifying the angle of axes' labels. The available options are based on \code{par(les)} and sets if the labels should be:
62 \itemize{
63 \item \code{1}: parallel to the axis,
64 \item \code{2}: horizontal,
65 \item \code{3}: perpendicular to the axis or
66 \item \code{4}: vertical.
67 }
68 \item \code{graph.symbol}: numeric (default: \code{1}) specifying a symbol (see the \code{pch} parameter of \code{par})
69 \item \code{knitr.auto.asis}: boolean (default: \code{TRUE}) if the results of \code{pander} should be considered as \code{'asis'} in \code{knitr}. Equals to specifying \code{results='asis'} in the R chunk, so thus there is no need to do so if set to \code{TRUE}.
70 \item \code{pandoc.binary}: full path of \code{pandoc}'s binary. By default, \code{pandoc} is in the path.
71 }
72 }
73 \examples{
74 \dontrun{
75 panderOptions()
76 panderOptions('digits')
77 panderOptions('digits', 5)
78 }
79 }
80 \seealso{
81 \code{\link{evalsOptions}}
82 }