finds all available source packages starting from the project root
Source:R/find_srcpkgs.R
find_srcpkgs.RdN.B: the hidden files and directories are ignored.
In general, this function is not used directly, instead you should use get_srcpkgs()
Usage
find_srcpkgs(
root = get_project_root(),
srcpkgs_paths = find_srcpkgs_paths(root, prune = prune),
prune = TRUE
)Value
a "srcpkgs" object (or NULL if none found), a named list of "srcpkg" objects, that essentially are devtools "package" objects. The list is named after the package names.
Examples
pkg <- setup_and_get_dummy_srcpkg()
pkgs <- find_srcpkgs(dirname(pkg$path))
print(pkgs)
#> package version path
#> dummy.srcpkg dummy.srcpkg 3.1416 /tmp/RtmpdftqsK/file1e6c8745846/dummy_srcpkg
#> imports depends suggests
#> dummy.srcpkg testthat