R-alpha: <- system()

Paul Gilbert (pgilbert@bank-banque-canada.ca)
Thu, 28 Mar 1996 15:32:11 -0500


Date: Thu, 28 Mar 1996 15:32:11 -0500
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
To: R-testers@stat.math.ethz.ch
Subject: R-alpha: <- system()
Message-Id: <96Mar28.152638est.29450@mailgate.bank-banque-canada.ca>


In partial answer to one of my previous questions I defined

version <- list(platform="Unix",
                   arch=system("uname -p"),
                   os=system("uname -s -r"),
                   system=system("uname -p"),
                   status="alpha",
                   major=0 , 
                   minor=.3,  
                   date=c(1996 ,3 ,26)
                  )
class(version) <- "Rversion"

(which should be done in the base R system). If this worked it would
allow me to do things like

if(class(version) == "Sversion") 
  {...
  }
if(class(version) == "Rversion") 
  {...
  }

which brings me to another problem:
> zot <- system("uname -p")
sparc
> zot
NULL

Assign from the function system() does not seem to be working.

Paul
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-