Generate a list of existing local SNAPverse packages.

sv_local_pkgs(base_path = "../", self = TRUE)

Arguments

base_path

defaults to the parent directory of the working directory.

self

logical, include the currently loaded package (working directory) if in the SNAPverse.

Value

a character vector.

Details

This function looks for packages beginning with the expression ^snap* and sharing the same parent directory as the current package/working directory. If self = TRUE (default), the current working directory will be included in the list if applicable.

Examples

sv_local_pkgs()
#> character(0)