machine() vs .Platform$OS.type

Martin Maechler Martin Maechler <>
Wed, 15 Dec 1999 16:31:29 +0100 (MET)

>>>>> On Wed, 15 Dec 1999 10:24:16 -0500, Paul Gilbert
>>>>> <> said:

    PaulG>     o .Platform$OS.type is standardized to be `unix', `mac' or
    PaulG> `windows'

    PaulG> However, machine() still returns "Unix" rather than "unix". (I'm
    PaulG> not sure what it returns on other platforms.  Should I be
    PaulG> thinking of machine() as standardized already, or is
    PaulG> .Platform$OS.type the preferred standard way to check this?

yes.  As a matter of fact, I think  machine() should become deprecated...

r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: