If you use R enough, eventually you will want to perform a specialized calculation. There is a community of people who distribute software via packages, so what you need may already exist.
5700 packages on CRAN, then there’s BioConductor and Github
Comprehensive R Archive Network
Main page:
Human curated lists of packages and why you might want to use them.
Example: Genetics One of the subdivisions: Importing sequence data, links to, amoung others, the seqinr
package.
Follow link to the package (or get it from a web search)
r-forge
, github
, etc. are signs that the package is being developed collaboratively, which is often an advantage.g++
.Binaries. Files ready for installation without compilation. Make sure to check the version numbers on the different platforms; some binaries are obselescent..
Reverse depends, Reverse imports, Reverse suggests: Lists some other packages that use this one. It’s a good sign when package has many of these, particularly if they are popular. (But a brand new package won’t have these, no matter how good the package is.)
You need to install the package on your system. This need only be done once —or when there are updates— no matter how many times you use the package.
This you need to do every time you use the package. If you are using R-arkdown, be sure to require()
the package in your document.
A nice way to do this is to create a chunk with directive {r include=FALSE}
to avoid including in your document the numerous messages that are generated when a package is loaded.
NOTE: Even though it’s called “loading a package,” don’t use load()
to do it. Use require()
or library()
. (It doesn’t really matter which.) The load()
function does something quite different, involving bringing previously created objects (such as data frames) into R.
[rbloggers](http://www.r-bloggers.com/)
Try a web search on using seqinr R
or whatever the package is called. You may find articles, books that use the package, tutorials. Why aren’t these vignettes? Probably because they were written by someone other than the package authors.
This is a good way to find out about new developments.