GenomicFeatures is an R/Bioconductor package for querying the gene models of a given organism/assembly.
See https://bioconductor.org/packages/GenomicFeatures for more information including how to install the release version of the package (please refrain from installing directly from GitHub).