[R] Tracking when an object/function was modified (Mona Kanaan)

simon gatehouse simon at hellscho.com.au
Mon Mar 12 02:17:52 CET 2007


You might find this useful.

I have modified the R 'edit' function by adding

                           attr(x,"date.modified") <- 
substring(Sys.time(),1,19)

before the last line.

I then changed to ls() to sort functions, paste function name and time 
stamp from the contents of the "date.modified" attribute before output.  
Not particularly tidy but functional.
Only useful for functions that go through the editor.



More information about the R-help mailing list