This function identifies the package type from a filename.
identifyPackageType(file, pkginfo = getPackageInfo(file))string Type of the supplied package.
The returned string is suitable for write_PACKAGES().
This is an internal function, use ::: to access it from outside
the internal package code.