Learn R Programming

options (version 0.2.0)

pkgname: Grab package name, at runtime

Description

Lazily grab packageName() within calling environment, not within function environment.

Usage

pkgname(env = parent.frame())

Value

A package name or "globalenv" if not found

Arguments

env

An environment in which to search for a package name