R/utils.R
pkgname.Rd
Lazily grab packageName() within calling environment, not within function environment.
packageName()
pkgname(env = parent.frame())
An environment in which to search for a package name
A package name or "globalenv" if not found