empty_list_to_list_null: Replace 'list()' with 'list(NULL)'

View source: R/pretty_axis_support.R

empty_list_to_list_nullR Documentation

Replace list() with list(NULL)

Description

This function replaces an empty list with list(NULL).

Usage

empty_list_to_list_null(list_name, l)

Arguments

list_name

The name of the list.

l

A list.

Value

A list, as inputted, if the inputted list is not empty; or list(NULL) if the input is an empty list.

Author(s)

Edward Lavender


edwardlavender/prettyGraphics documentation built on Jan. 19, 2025, 2:47 p.m.