Using splicing for code reduction, see makeRFunction