getPkgName: Get the package name from a package folder path.

View source: R/fcts_ext.R

getPkgNameR 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')


pkrog/biodb documentation built on Nov. 29, 2022, 4:24 a.m.