MyGene.info
Using the R package for the MyGene.info database:
source("https://bioconductor.org/biocLite.R")
biocLite("mygene")
library(mygene)
gene <- getGene("1017", fields="all")
gene$summary
Multiple genes:
gene <- getGenes(c(1347:1350), fields="summary")
Entrez database
library(devtools)
install_github("ropensci/rentrez")
library(rentrez)
genes <- entrez_summary(db="gene", id=c(718,720))
genes$720$$`720`$summary