Tells if a directory is a package directory, i.e. that it contains a DESCRIPTION file.

is_package_path(x, error = FALSE)

Arguments

x

path to the directory to test

error

logical that indicates if an error should be raised if the directory is not a package directory.