Generate R function wrappers for Trident.