I have written code that will be run in either Splus or R, depending on certain circumstances. Most of the code runs interchangeably with the two programs. But, in certain instances, I need to modify code so that it is specific for Splus or R. Ideally, I would like to test which program is running. If I enter the command:
version$language
R returns "R" whereas my version of Splus (6.0) returns NULL. I can parse these to obtain the desired result but I was wondering if anyone has a more sophisticated approach to this issue.
Dennis