library(Rllvm)
mod = Module("globalTest")
mod[["l"]] = TRUE
mod[["r"]] = pi
mod[["i"]] = 101L
names(mod)
mod[["l"]]
mod[["r"]]
mod[["i"]]
ee = ExecutionEngine(mod)
mod[["l", ee = ee]]
mod[c("r", "i")]
if(FALSE && require(RLLVMCompile)) {
# Adding a function to the module and then the same function
# but with a different name.
f = function() { return(10.4) }
fc = compileFunction(f, DoubleType, mod = mod)
fc = compileFunction(f, DoubleType, mod = mod, name = "g")
print(names(mod))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.