Detect whether the working directory is that of a package

detect_package()

Value

TRUE if the working directory is that of a package, FALSE otherwise