Here you can download hepful Spotfire hints:
1. Creating Data Functions with R in Spotfire, a.k.a. Integration of R Programs in Spotfire