date() should not append a final "\n" ?!?
Martin Maechler
Martin Maechler <maechler@stat.math.ethz.ch>
Thu, 19 Aug 1999 10:45:35 +0200
Between R 0.63.2 and 0.64, the behavior of
date()
has been changed in order to become platform independent.
It now uses POSIX calls, basically
time_t t;
time(&t);
return ctime(&t);
This currently returns (for me on Sun SPARC Solaris)
> date()
[1] "Thu Aug 19 10:36:28 1999\n"
where I think the final "\n" is really UNdesired.
---
Is this just my (Sun's) version of ctime(), i.e.,
does anyone *NOT* get the final new line ?
Thanks for your feedback.
Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._