R-alpha: misc. alpha 0.4

Paul Gilbert (pgilbert@bank-banque-canada.ca)
Tue, 2 Apr 1996 11:46:17 -0500

Date: Tue, 2 Apr 1996 11:46:17 -0500
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
To: R-testers@stat.math.ethz.ch
Subject: R-alpha: misc. alpha 0.4
Message-Id: <96Apr2.114140est.29475@mailgate.bank-banque-canada.ca>

When I have a problem and something bombs is there any easy way to find
where my programs are when the error occurs? (Something like
traceback() or sys.calls() in S.)

>From the man page for Solaris:
     -s    cat is silent about non-existent files.

Assigning the value of system() still does not work:
> z <- system("pwd")
> z

The following can be done with version

if( version$os == "SunOS 5.x") 
  {unix <- function(cmd) system(cmd)
   unlink <- function(file) system(paste("rm ", file))

but it would be useful to be able to test for something like "Unix",
"Mac", or "Windows".

Paul Gilbert
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