On 2/22/11 4:32 PM, "Dirk Eddelbuettel" <e...@debian.org> wrote:
>
>What boolean test for 'am I on OS X 10.5' can you suggest?

You could use system("uname -r"), which on my system gives 10.6.0 (even
though my system is 10.6.6) and on a 10.5.x system seems to give
9.something.

Or if you don't mind a command that will only exist on OS X, you can do
system("sw_vers -productVersion"), which gives the actual OS version.


--
Ken Williams
Senior Research Scientist
Thomson Reuters
http://labs.thomsonreuters.com


_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to