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 people using the
llply() function from
"llply" user:cran language:R
Or just click here.
This takes advantage of Gábor Csárdi's unofficial read-only mirror of all CRAN R packages: https://github.com/cran, which also has a pretty webpage: http://cran.github.io.
While I'm at it, I'll also link to Winston Chang's read-only mirror of the R source: https://github.com/wch/r-source.
Remember, read the source!
Add this to your
.Rprofileand you can save a wee bit of typing, too:
so, now you can just do
cranex("llply")from the R console :-)