getReposName: Extract the repository name from a package folder.

View source: R/fcts_ext.R

getReposNameR Documentation

Extract the repository name from a package folder.

Description

Given the root path of a package, returns the GitHub repository name.

Usage

getReposName(pkgRoot, default = NULL)

Arguments

pkgRoot

The path to the root folder of the package.

default

A default value to return in case git4r package is not available or the folder is not a Git repository.

Value

The repository name.

Examples

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


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