s-news
[Top] [All Lists]

Identifying Splus vs. R

To: s-news@lists.biostat.wustl.edu
Subject: Identifying Splus vs. R
From: Dennis Fisher <fisher@plessthan.com>
Date: Fri, 3 Feb 2006 06:12:01 -0800
In-reply-to: <20060203112004.D61CF33E745@smtp.biostat.wustl.edu>
References: <20060203112004.D61CF33E745@smtp.biostat.wustl.edu>
Colleagues,

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



Dennis Fisher MD

P < (The "P Less Than" Company)

Phone: 1-866-PLessThan (1-866-753-7784)

Fax: 1-415-564-2220

www.PLessThan.com


<Prev in Thread] Current Thread [Next in Thread>