Learn R Programming

riskmetric (version 0.2.5)

get_pkg_ref_classes: Walk the pkg_ref class hierarchy to match a single subclass to a class path

Description

Walk the pkg_ref class hierarchy to match a single subclass to a class path

Usage

get_pkg_ref_classes(x, classes = pkg_ref_class_hierarchy)

Value

A `character(n)` class path from `pkg_ref` down to the specified subclass, or `FALSE` if no path is found.

Arguments

x

(`character(1L)`) A subclass, among those known in pkg_ref subclasses

classes

(`list`) A class hierarchy, described using a named list. Defaults to `pkg_ref_class_hierarchy`.