Nothing
#' @rdname available_on_cran
#' @export
available_on_bioc <- function(name, repos = NULL, ...) {
if (is.null(repos)) {
if (requireNamespace("BiocManager", quietly = TRUE)) {
repos <- BiocManager::repositories()
} else {
# Search on latest bioc release
repos <- c(
BioCsoft = "https://bioconductor.org/packages/release/bioc",
BioCann = "https://bioconductor.org/packages/release/data/annotation",
BioCexp = "https://bioconductor.org/packages/release/data/experiment")
}
}
bioc_names <- rownames(available_packages(repos = repos, ...))
on_bioc <- tolower(name) %in% tolower(bioc_names)
structure(!on_bioc, class = "available_bioc")
}
#' @export
format.available_bioc <- function(x, ...) {
paste0(crayon::bold("Available on Bioconductor: "), yes_no(x[[1]]), "\n")
}
#' @export
print.available_bioc <- function(x, ...) {
cat(format(x, ...))
invisible(x)
}
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.