.onLoad <- function(libname, pkgname) { # nocov start
reticulate::configure_environment(pkgname)
# catch tf error
suppressMessages(try(keras::use_implementation("tensorflow"), silent = TRUE))
# catch TFP error
suppressMessages(try(invisible(tfprobability::tfd_normal(0,1)), silent = TRUE))
} # nocov end
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.