req_ns: Shortcut for the usual "requireNamespace" dance

View source: R/zzz.R

req_nsR Documentation

Shortcut for the usual "requireNamespace" dance

Description

This shortens the boilerplate required to use functios from a suggested package.

Usage

req_ns(..., caller = as.character(sys.call(-1)[1]))

Arguments

...

Packages to require

caller

The name of the function this was called from. Only used to create an appropriate error message.


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.