R/utils.R

Defines functions advanced_argument

#' Set an advanced argument
#'
#' @param name Name of the advanced argument to look for in ...
#' @param value The default value of the advanged argument
#' @keywords internal 
.advanced_argument <- function(name, value, ...) {
    args <- list(...)
    if(!name %in% names(args)) {
        return(value)
    } else {
        return(args[[name]])
    }
}
Bioconductor-mirror/derfinderPlot documentation built on Aug. 8, 2017, 5:47 a.m.