The function determines which packages in a repositories can be removed as they are being ‘shadowed’ by a newer version of the same packages.
pruneRepo(repopath = getOption("dratRepo", "~/git/drat"), type = "source",
pkg, remove = FALSE)
Character variable with the path to the repo; defaults to the value of the “dratRepo” option with “"~/git/drat"” as fallback
Character variable for the type of repository, so far “source”
Optional character variable specifying a package name, whose older versions should be pruned. If missing (the default), pruning is performed on all packages.
Logical variable indicating whether files should be removed
A data frame describing the repository is returned containing columns with columns “file”, “package” (just the name), “version” and a logical variable “newest” indicating if the package can be removed.
Given a package name, R will always find the newest version of that package. Older versions are therefore effectively shadowed and can be removed without functionally changing a repository.
This function is still undergoing development and polish and may change in subsequent versions.