sayHello <- function() {
helloRJava <- .jnew("HelloRJava") # create instance of HelloRJava class
ret <- .jcall(helloRJava, "S", "sayHello") # invoke sayHello method
return(ret)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.