R/check_chunk.R

Defines functions check_chunk

Documented in check_chunk

#' Check code chunk
#'
#' Check code chunk.
#'
#' @export

check_chunk <- function(){
  check.r <- c("stopifnot(rownames(pheno) == colnames(mtrx))",
               "stopifnot(rownames(mtrx) %in% rownames(annot))")
  chunk <- c("```{r check}", check.r, "```")
  return(chunk)
}
jdreyf/bioinformd documentation built on June 14, 2025, 10:59 p.m.