29 Search GitHub
29.1 Basic resources
Read-only mirror of R source by Winston Chang:
Read-only mirror of all packages on CRAN by Gábor Csárdi:
29.2 Use case
What if a function in a package has no examples? Or is poorly exampled? Wouldn’t it be nice to find functioning instances of it “in the wild”?
Via Twitter, Noam Ross taught me a clever way to do such searches on GitHub. Put this into the GitHub search box to see how packages on CRAN use the
llply() function from
"llply" user:cran language:R
Or just click here.
Another example that recently came up on r-package-devel:
How to see lots of examples of roxygen templates?
This search finds >1400 examples of roxygen templates in the wild: