library(R2llvm)
# infer_types can't handle global variables yet.
f = function() 1 + pi
#R2llvm should recognize this as a constant.
f = compileFunction(f, optimize = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.