prOutputDefaults: Set default values of output functions

Description Usage Arguments Value Examples

Description

This function can modify the default values of the parameters of output function like prWriteTable or prPdf. This can be useful for instance to set in one and only one location the default size of output images, the default font...

Usage

1
prOutputDefaults(table = NA, image = NA, pdf = NA, cairo = NA)

Arguments

table

Named list. The names correspond to argument names of write.table and the values to the new default values of these parameters. If this argument is NULL the defaults are reset to their original values

image

Named list. The names correspond to argument names of png and the values to the new default values of these parameters. If this argument is NULL the defaults are reset to their original values

pdf

Named list. The names correspond to argument names of pdf and the values to the new default values of these parameters. If this argument is NULL the defaults are reset to their original values

cairo

Named list. The names correspond to argument names of cairo_pdf and the values to the new default values of these parameters. If this argument is NULL the defaults are reset to their original values

Value

prOutputDefaults invisibly returns the list of modified defaults values.

Examples

1
2
3
4
5
6
7
8
# Remove row names of table output:
prOutputDefaults(table = list(row.names = FALSE))

# Modify the default size of pdf output:
prOutputDefaults(pdf = list(width = 8, height = 6))

# Reset default values for pdf and table output
prOutputDefaults(table = NULL, pdf = NULL)

cuche27/project documentation built on May 14, 2019, 12:50 p.m.