diffify icon indicating copy to clipboard operation
diffify copied to clipboard

Entry from function name to get its history

Open statnmap opened this issue 3 years ago • 2 comments

I'd find interesting to know the history of a specific function in a specific package.
In particular:

  • when did this specific function appear in the package ?
    • That would allow to choose a minimal version number in DESCRIPTION file
  • In which versions did this function change ?
    • Change in arguments for instance would allow developers to create their functions conditional to package version number

Thank you

statnmap avatar Jun 01 '22 15:06 statnmap

That's a nice idea! The data is all there, just need to think about how to structure the front end.

csgillespie avatar Jun 01 '22 15:06 csgillespie

One option would be...

  1. Add a little "history" icon to each function entry.
  2. Click it and a modal shows up with all the package versions where the function changed (a bit like the history page for a file on Github).
  3. For each of those there's a link to the diff of that package version against the one before it. The link also includes a url search parameter that specifies the function of interest.
  4. When the link is opened the url parameter is read and the page is scrolled to the corresponding function which is also set to open.

timbrock avatar Jun 08 '22 10:06 timbrock