[R] How to know created time of object in R?
Duncan Temple Lang
duncan at wald.ucdavis.edu
Tue Nov 6 18:03:55 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Of course, Brian is correct that the problem requires a great
deal more specificity. However, one could imagine that it would
be useful to tag objects created by top-level expressions
with the time they were created in much the same way that the
file system provides a modification time.
It is easy enough to add the time as an attribute of an object,
but I imagine you are asking how to automate this.
To this end, you could do something with the addTaskCallback() function
which allows you to specify a function that is invoked
at the completion of each top-level evaluation. You could
get store some useful time information with the object
or perhaps go further and work with the expressions
to determine dependencies and capture the dependencies in
a series of computations.
D.
Dong-hyun Oh wrote:
> Dear UseRs,
>
> I would like to know the created time and date of specific object.
> Is there any function for it?
>
> Thank you in advance.
>
>
> Sincerely,
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHMJ579p/Jzwa2QP4RAhyoAJ9aFlRXAKP6bfmgol2MDTSQzyujRACfdCaX
G19v83tjpMOqyUIfeBRn0/k=
=TBXf
-----END PGP SIGNATURE-----
More information about the R-help
mailing list