R/deprecate.R

#' These functions will be deprecated. Please use other functions instead.
#'
#' @param x -
#'
#' @param ... -
#'
#' @name deprecate
NULL

#' @rdname deprecate
#' @export
setGeneric("plotTaxaPrevalence", signature = c("x"),
    function(x, ...)
    standardGeneric("plotTaxaPrevalence"))

#' @rdname deprecate
#' @export
setMethod("plotTaxaPrevalence", signature = c(x = "ANY"), function(x, ...){
    .Deprecated(
        old ="plotTaxaPrevalence", new = "plotRowPrevalence",
        msg = paste0("The 'plotTaxaPrevalence' function is ",
            "deprecated. Use 'plotRowPrevalence' instead."))
    plotRowPrevalence(x, ...)
    }
)

#' @rdname deprecate
#' @export
setGeneric("plotFeaturePrevalence", signature = c("x"),
    function(x, ...)
    standardGeneric("plotFeaturePrevalence"))

#' @rdname deprecate
#' @export
setMethod("plotFeaturePrevalence", signature = c(x = "ANY"), function(x, ...){
    .Deprecated(
        old ="plotFeaturePrevalence", new = "plotRowPrevalence",
        msg = paste0("The 'plotFeaturePrevalence' function is ",
            "deprecated. Use 'plotRowPrevalence' instead."))
    plotRowPrevalence(x, ...)
    }
)
microbiome/miaViz documentation built on Jan. 19, 2025, 9:48 p.m.