test_if_forked_cluster <- function(){
is_forked <- value(future(parallelly::isForkedChild()))
if (is_forked) {
cli::cli_abort(
"parallel mcmc samplers cannot be run with a fork cluster"
)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.