The pkg
parameter needs to be a (full or relative) path to your package code (where DESCRIPTION
is located), not only the package name. The default parameter "."
works if the current directory is the package directory. Try:
is.package("/path/to/your/pk")