test_parallel <- function(nproc, time = 2) {
system.time(
future.apply::future_sapply(
seq_len(nproc),
function(iproc)
Sys.sleep(time)
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.