[R] can one evaluate an expression in a comment? (or insert results into history?)
partha_bagchi at hgsi.com
Mon Nov 8 23:07:04 CET 2004
Have you perchance looked at
> paste("The current time is ", date())
 "The current time is Mon Nov 08 17:06:25 2004"
<davidr at rhotrading.com>
Sent by: r-help-bounces at stat.math.ethz.ch
11/08/2004 04:47 PM
To: <r-help at stat.math.ethz.ch>
Subject: [R] can one evaluate an expression in a comment? (or insert results into
I'd like to insert (for example) the current datetime into a comment so
it goes into the history.
I can of course cut and paste the results of date() into a comment line,
but it would be easier and more powerful to be able to type something
and have it go into the history.
More generally, I would like to put any expression to be evaluated into
would insert a comment like
after the hstamp command into the history.
Probably one should avoid any expressions with assignment effects or
large amounts of output.
Maybe I'm thinking about this all wrong, so please enlighten me if so.
I searched all the help and archives as well as I could.
system i386, mingw32
David L. Reiner
440 S. LaSalle St -- Suite 620
Chicago IL 60605
[[alternative HTML version deleted]]
R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help