Nothing
#'
#' Verify Required Graphics Packages are Available.
#'
#' *Internal function*.
#'
#' @param pkgs Character. Vector of package names. Each is checked for availability.
#' @return \code{NULL}, invisibly.
#'
#' @author `r .writeDoc_Authors(c("BH", "TG"))`
#' @export
#' @keywords internal
#'
.chkReqGraphicsPkgs <- function(pkgs) {
if ("ggplot2" %in% pkgs) {
if (!requireNamespace("ggplot2", quietly = TRUE)) {
stop("You need to install package ggplot2 to use this function")
}
}
if ("plotly" %in% pkgs) {
if (!requireNamespace("ggplot2", quietly = TRUE)) {
stop("You need to install package ggplot2 to use this function")
}
if (!requireNamespace("plotly", quietly = TRUE)) {
stop("You need to install package plotly to use this function")
}
}
if ("patchwork" %in% pkgs) {
if (!requireNamespace("ggplot2", quietly = TRUE)) {
stop("You need to install package ggplot2 to use this function")
}
if (!requireNamespace("patchwork", quietly = TRUE)) {
stop("You need to install package patchwork to use this function")
}
}
if ("lattice" %in% pkgs) {
if (!requireNamespace("lattice", quietly = TRUE)) {
stop("You need to install package lattice to use this function")
}
}
invisible(NULL)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.