Learn R Programming

pkgmaker (version 0.32.10)

find_devpackage: 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)

Value

A character string containing the path to the package.

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.

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.