[R] Added Function option to Custom