From pgilbert@bank-banque-canada.ca  Fri Oct 17 16:49:24 1997
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Fri, 17 Oct 1997 11:49:24 -0400
Subject: R-alpha: system() NOT ok
Message-ID: <97Oct17.115143edt.26514@mailgate.bank-banque-canada.ca>

Why does parse not work below and why does assigning it crash R?

Paul
________
$ R
R : Copyright 1997, Robert Gentleman and Ross Ihaka
Version 0.50 Alpha-3 (August 8, 1997)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type "license()" for details.

> system("date \'+%Y %m %d %H %M %S\'", intern=T)
[1] "1997 10 17 11 43 21"
> parse(text = system("date \'+%Y %m %d %H %M %S\'", intern=T),white =
T)
1997 10 17 11 43 43
      ^
expression()
> d <- parse(text = system("date \'+%Y %m %d %H %M %S\'",
intern=T),white = T)
1997 10 17 11 44 22
      ^
>
$

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: system() NOT ok
Paul Gilbert