Skip to contents

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

Syed Haider

Examples

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

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