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