R/installedMadratUniverse.R

Defines functions installedMadratUniverse

Documented in installedMadratUniverse

#' installedMadratUniverse
#'
#' Returns a name vector of installed packages which
#' supposedly belong to the madrat universe.
#' They are currently derived as the union of
#' all loaded madrat packages and all packages
#' with a name starting with "mr" or "ms"
#' (as the usual indicator for madrat-packages and
#' madrat-support-packages).
#'
#' @return A name vector of installed packages which supposedly belong
#' to the madrat universe
#' @author Jan Philipp Dietrich
#' @seealso \code{\link{setConfig}}
#' @examples
#' \dontrun{
#' installedMadratUniverse()
#' }
#' @export
#'
installedMadratUniverse <- function() {
 return(robustSort(union(getConfig("packages"), grep("^m[rs]", rownames(installed.packages()), value = TRUE))))
}

Try the madrat package in your browser

Any scripts or data that you put into this service are public.

madrat documentation built on Aug. 23, 2023, 5:10 p.m.