Learn R Programming

switchr (version 0.14.8)

checkIsPkgDir: Check if a directory contains package sources

Description

Check if a directory contains package sources

Usage

checkIsPkgDir(dir)

Value

Logical scalar indicating if the directory contains the source code for a package.

Arguments

dir

The directory.

Details

Any directory containing a DESCRIPTION file as a direct child is considered a package source directory, while any that do not are not.