R-alpha: system()

Paul Gilbert pgilbert@bank-banque-canada.ca
Fri, 17 Oct 1997 11:18:54 -0400


Here is a minor difference between R and S, but the rather pecular
"numeric" result occasionally seems to cause R to crash when it is used.
I'm not sure if this has been changed in .60.

R : ...

> mode(system("date \'+%Y %m %d %H %M %S\'"))
1997 10 17 10 57 27
[1] "numeric"
>
> (system("date \'+%Y %m %d %H %M %S\'"))[1]
1997 10 17 11 13 55
[1] 0
>
> q()
Save workspace image? [y/n/c]: n
$
$ splus...
>  mode(system("date \'+%Y %m %d %H %M %S\'"))
[1] "character"
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-