get_used_namespace: Get the currently used namespace

Description Usage Arguments

View source: R/namespace_utils.R

Description

Function to get the used namespace and prepend it to the function name.

This has the effect of replacing a provided function name, with the formal name which replicates the behaviour as it is when called in the current environment. This is designed to make conversions from conventional code to a package format easier.

When it is used on a function with no defintion, or a function which is a part of the base packages, it will simply return the input unchanged.

Usage

1
get_used_namespace(.function_name)

Arguments

.function_name

The function name to get the formal name for.


JDOsborne1/OSButils documentation built on Jan. 8, 2021, 4:39 p.m.