is_valid_package_name {pkgdepends}R Documentation

Check whether a package name is valid

Description

Check whether a package name is valid

Usage

is_valid_package_name(nm)

Arguments

nm

Potential package name, string of length 1.

Value

Logical flag. If FALSE, then the reason attribute contains a character string, the explanation why the package name is invalid. See examples below.

Examples

is_valid_package_name("pak")
is_valid_package_name("pkg")
is_valid_package_name("pak\u00e1ge")
is_valid_package_name("good-package")
is_valid_package_name("x")
is_valid_package_name("1stpackage")
is_valid_package_name("dots.")

[Package pkgdepends version 0.7.2 Index]