as_delayed_array <- function(exp,
as_DelayedArray = TRUE,
verbose = TRUE) {
if (as_DelayedArray && (!is_delayed_array(exp))) {
messager("Converting to DelayedArray.", v = verbose)
requireNamespace("DelayedArray")
if (!is_matrix(exp)) {
exp <- as.matrix(exp)
}
exp <- DelayedArray::DelayedArray(exp)
}
return(exp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.