grid_unit_type: Wrapper for 'grid::unitType' which supports older R versions

View source: R/grid_utils.R

grid_unit_typeR Documentation

Wrapper for grid::unitType which supports older R versions

Description

Wrapper for grid::unitType which supports older R versions

Usage

grid_unit_type(x, use_grid = TRUE)

Arguments

x

a grid::unit

use_grid

means try to call grid::unitType if it exists. The main purpose of this argument is to have full test coverage in tests. Default TRUE.

Value

a character vector with unit type for each element.


gridify documentation built on Feb. 5, 2026, 5:09 p.m.