Hi Anil,
Have a look at the Modeler R Help in
the Knowledge Center: http://www-01.ibm.com/support/knowledgecenter/SS3RA7_17.0.0/modeler_r_nodes_ddita-gentopic1.dita
There are some examples in there that
I've found useful, if not specific to the R functions you want to use.
Alex
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD