How do I create input and output ports for Rshell (R) services?

The Rshell services work in the same way as the Beanshells, where you create your input and output ports and use the same names for variables in your scripts. In addition, you will have to add information about the connection settings for the RServe.