R/check_pakage.R

Defines functions check_package

check_package = function(package = "ggVennDiagram"){
  if (!requireNamespace(package, quietly = TRUE)){
    stop(paste("The", package, "package is not found in your library paths.",
               "  It is required to show intersections interactively.",
               "  Please run `install.packages('package')` and retry.",
               collapse = "\n"))
  }
}

Try the ggVennDiagram package in your browser

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

ggVennDiagram documentation built on May 29, 2024, 10:21 a.m.