get.defaults {BoutrosLab.plotting.general}R Documentation

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

Author(s)

Syed Haider

Examples

    # returns the fontfamily for current OS
    get.defaults(property = "fontfamily");

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

[Package BoutrosLab.plotting.general version 6.0.3 Index]