.onLoad <- function( libname, pkgname ){
.python.init()
code <- readLines(system.file("python","pyr_init.py", package="PyR"))
code <- paste(code, collapse = "\n")
.python.exec(code, start = "file")
}
.onUnload <- function( libpath ){
.python.close()
library.dynam.unload("PyR", libpath)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.