Skip to contents

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

Usage

pkgname(env = parent.frame())

Arguments

env

An environment in which to search for a package name

Value

A package name or "globalenv" if not found