HTTPGET.FRONTPAGE <- function(){
#check if the template is available:
stopifnot(file.exists(system.file("templates/frontpage.html", package="opencpu.server")));
#return template
return(list(
filename=system.file("templates/frontpage.html", package="opencpu.server"),
type="text/html"
));
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.