in reply to Re: Re: What is the right value of $^O to identify Mac OS X?
in thread What is the right value of $^O to identify Mac OS X?

I'm still unsure what you mean by "bridge class".

The Mac OS X install of R installs the same sort of things as any other Unix variant of R (ignoring the Aqua GUI). You should be able to treat it like any other Unix.

The binary distribution puts it all in a Mac OS framework, but that should only be a case adding /Library/Frameworks/R.framework/Resources/bin and friends to the normal paths you would search for R in.

One would hope that the search paths would be user configurable anyway for those who do not / cannot install R in the default location.

What am I missing? What exactly do you need to do differently on Mac OS X?

Replies are listed 'Best First'.
Re: Re^3: What is the right value of $^O to identify Mac OS X?
by gmpassos (Priest) on Apr 30, 2004 at 17:10 UTC
    The question is, how to know if I'm on Darwin or on Mac OS X using pure Perl!

    The biggest difference will be only the default installation path to the R binaries.

    Graciliano M. P.
    "Creativity is the expression of the liberty".

      The question is, how to know if I'm on Darwin or on Mac OS X using pure Perl!

      Just to re-iterate Mac OS X is Darwin, just like Redhat and Slackware are both Linux. You cannot be on a Mac OS X system and not be on Darwin.

      If you want to know whether your R binaries are in /Library/Frameworks then knowing the difference between a Mac OS X box and any other Darwin box isn't going to help you.

      Frameworks are a Darwin way of bundling stuff together. A non-Mac OS X box running Darwin is also likely to have R in /Library/Frameworks.

      (Equally, a Mac OS X box may not have the R binaries in /Library/Frameworks because whoever installed it compiled it from source and chucked it somewhere else.)