#' Prints available TCGA datasets
#'
#' @description Prints available TCGA cohorts
#' @param repo can be "github" (default) or "gitee". If `github` fails to fetch, switch to `gitee`
#' @examples
#' tcgaAvailable()
#' @export
#' @seealso \code{\link{tcgaLoad}}
tcgaAvailable = function(repo = c("github", "gitee")){
repo <- match.arg(repo)
repo_url <- if (repo == "github") {
"https://github.com/PoisonAlien/TCGAmutations/raw/master"
} else {
"https://gitee.com/ShixiangWang/TCGAmutations/raw/master"
}
cohorts = data.table::fread(
input = paste0(repo_url, "/inst/extdata/cohorts.txt"),
verbose = FALSE,
showProgress = FALSE)
cohorts
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.