inst/examples/types.R

count =
  #
  # example of adding a literal of the wrong type to
  # an object.
  #  a = compileFunction(count, Int32Type, list(len = Int32Type))
  #
function(len)
{
   return(len + 1)
}
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.