diffify icon indicating copy to clipboard operation
diffify copied to clipboard

Suggestion: Add link to diff on R-hub GitHub CRAN package source code mirror repo

Open remlapmot opened this issue 3 years ago • 3 comments

Thanks for a great app and always brilliant blog posts.

I have a suggestion for this app involving the R-hub CRAN source code mirror of each CRAN package.

https://github.com/cran

https://docs.r-hub.io/#cranatgh

The helpful features of these package repos is that versions are added to repos as single commits and they also git tag the versions.

This enables you to see the diff between the source versions of packages using GitHub's features. For example, either by looking at the URL for the commit, like the example R-hub give here, or by using the repo's /compare page, the syntax for which is programmable

https://github.com/cran/{pkgname}/compare/{tag1}...{tag2}

(There's more about the syntax here and here)

For example, to see the diff between rmarkdown versions/tags 2.13 and 2.14 I can go to the following URL (which GitHub seems to format in markdown as https://github.com/cran/rmarkdown/compare/2.13...2.14)

https://github.com/cran/rmarkdown/compare/2.13...2.14

You you could add such a URL to your results.

remlapmot avatar May 16 '22 13:05 remlapmot

That's a really neat idea that never occurred to me - thanks!

We'll have a think about how best to do this, but definitely, something to consider.

csgillespie avatar May 16 '22 13:05 csgillespie

My pleasure

remlapmot avatar May 16 '22 15:05 remlapmot

I would like to second this suggestion. The diff is super helpful for identifying changes to non-exported functions that might have caused a change. I also didn't know that this was an option until I saw the suggestion on this issue.

jamieRowen-mediacom avatar Apr 06 '23 07:04 jamieRowen-mediacom