.onAttach <- function(libname, pkgname) {
PythonInR::pyExec("import numpy")
PythonInR::pyOptions("useNumpy", TRUE)
packageStartupMessage("rlo: Importing numpy and setting the PythonInR option useNumpy to TRUE")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.