#' A installBiocifnot Function
#'
#' Download, install and load packages from Bioconductor repositories.
#' @param pckgName name of package
#' @param force.install TRUE to force installation
#' @export installBiocifnot
#' @author Miriam Mota \email{miriam.mota@@vhir.org}
#' @import BiocManager
#' @examples
#' # installBiocifnot("CMA")
#' @keywords install require library bioconductor
installBiocifnot <- function(pckgName, force.install = FALSE){
if (!is.element(pckgName, installed.packages()[,1]) | force.install) {
BiocManager::install(pckgName)
require(pckgName, character.only = TRUE)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.