needs-package: Easier package loading / auto-installation

Description Author(s) References


needs is a simple R function to make package loading / installation hassle-free — use it in place of library to attach packages and automatically install any that are missing. You can also supply a minimum version number, and it will update old packages as needed. No more changing your code to reinstall packages every time you update R — needs does it for you.


Josh Katz


Source repo:

Search within the needs package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.