find_devpackage: Find Path to Development Package Root Directory

View source: R/project.R

find_devpackageR Documentation

Find Path to Development Package Root Directory

Description

Development packages are looked-up according to rules defined in a file .Rpackages in the user's home directory.

Usage

find_devpackage(x, error = TRUE)

Arguments

x

name of the development package to lookup.

error

logical that indicates if an error is thrown when the project root directory could not be found.

Value

A character string containing the path to the package.

Specification of package path

Package paths are specified in a list with:

  • unnamed elements: character strings give path to directories to lookup for sub-directories that match exactly the package's name;

  • named element containing character strings: these are paths that are looked up only for packages that match the element name. If the element name contains any of the characters ⁠*?()$^\\][⁠, then it is matched using regular expression.


renozao/pkgmaker documentation built on May 3, 2023, 6:04 p.m.