BoutrosLab.plotting.general (version 5.9.2)

get.defaults: Get operating system specific default properties

Description

Returns the value for the property requested

Usage

get.defaults(
	property = 'fontfamily',
	os.type = .Platform$OS.type,
	add.to.list = NULL,
	use.legacy.settings = FALSE
	);

Arguments

property

The property to be retrieved

os.type

operating system (optional). valid values are: “windows”, “unix”

add.to.list

appends the requested property to this parameter

use.legacy.settings

boolean to set wheter or not to use legacy mode settings (font)

Value

Returns the value (list if add.to.list is passed) for the property requested given the os.type parameter. If latter is missing, it attempts to find user's operating system

Examples

Run this code
# NOT RUN {
    # returns the fontfamily for current OS
    get.defaults(property = "fontfamily");

    # returns the fontfamily for unix
    get.defaults(property = "fontfamily", os.type = 'windows');
# }

Run the code above in your browser using DataLab