getPkgName {biodb} | R Documentation

## Get the package name from a package folder path.

### Description

The package name is extracted from the path by taking the basename.

### Usage

    getPkgName(pkgRoot, check = TRUE)

### Arguments

`pkgRoot` | The path to the root folder of the package.
`check` | If set to TRUE the extracted package name is checked against regular expression "^biodb[A-Z][A-Za-z0-9]+$", to ensure the format is respected.

### Value

The package name of the biodb extension.

### Examples

    biodb::getPkgName('/my/path/to/my/extension/biodbFoo')

[Package biodb version 1.0.4 Index]