.First.lib <- function(lib, pkg) {
## Use local=FALSE to allow easy loading of Tcl extensions
library.dynam("rb4R", pkg, lib,local=FALSE)
## dyndoc initialization
#.dynTmpl<-rbObj(curDyn)$tmpl
#singleton object
local({
dynVar<-list()
class(dynVar)<-"dynVarSrv"
},globalenv())
}
#.Last.lib <- function(libpath) {
# cat("Bye Ruby\n")
# .C("rb4R_finalize", PACKAGE="rb4R")
#}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.