To install any library from the BioC repository, you have to use the biocLite.R file and then use the biocLite() function to install the library. The following code snippet is to install the GenomicFeatures library from the BioC repository:
source(https://bioconductor.org/biocLite.R)
biocLite("GenomicFeatures")