Learn R Programming

ascribe (version 0.2.0)

resolve_origin: Resolve the origin package of an exported function

Description

Given a package and function name, determines which package the function actually originates from (handling re-exports).

Usage

resolve_origin(pkg, name)

Value

The origin package name, or NA_character_ if undetermined.

Arguments

pkg

Package name (character scalar).

name

Function name (character scalar).

Examples

Run this code
resolve_origin("stats", "median")

Run the code above in your browser using DataLab