Does anyone have a sample R submission script?

See the WestGrid Software section on R: 

http://westgrid.ca/support/software/R