R/PackageLoaded.R

#' @title PackageLoaded
#' @description Determine if the package is loaded, if no package is loaded.
#' @param name  A character which is the name of package.
#' @return A boolean value.
#' @usage PackageLoaded(name)
#' @export


PackageLoaded<-function (name) {
  (paste("package:", name, sep = "") %in% search()) ||
    (name %in% loadedNamespaces())
}

Try the DRviaSPCN package in your browser

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

DRviaSPCN documentation built on May 29, 2024, 4:38 a.m.