Skip to content
Prev 5261 / 15075 Next

File creation date

Thank you

That is too bad as date time of work is important

But, going forward, maybe I can learn how to set the date time in the
objects attributes when it is important

Like I found a discussion on this topic from 2004 which suggests
 attr(obj, "timestamp") <- Sys.time()
And then
 attr(obj, "timestamp")

So I tried
 attr(obj, "datetime") <- date()
Then
 attr(obj,"datetime")

And it works so I can do that

But then as I read the ref manual,
file.info tries to show mtime, ctime and atime
But I guess that does not apply to objects within a workspace