do_call_without_missing: Call function with arguments and remove all empty arguments...

View source: R/utilities.R

do_call_without_missingR Documentation

Call function with arguments and remove all empty arguments (NULL or length == 0)

Description

Invokes a function with a list of arguments, but removes all NULL arguments first

Usage

do_call_without_missing(fn, args, skipIfAllMissing = TRUE)

Arguments

fn

(function) Function that should be invoked

args

(named list) List of arguments (NULL arguments will be removed)

skipIfAllMissing

(logical) If skipIfAllMissing = TRUE and all arguments in args are NULL, then the function fn is not invoked and NULL is returned instead.


R-package/styledTables documentation built on Feb. 6, 2024, 2:21 a.m.