Hi,
I was using supportedUCSCtables() to find what tracks are available on UCSC genome browser and found the function is a bit mis-leading. The "ensGene" is in deed available on hg19 genome, but not on hg38. So when I do the following, I would get errors. I then use rtracklayer::trackName() to find what track is really available on UCSC genome browser.
> supportedUCSCtables(genome="hg38")
track subtrack
knownGene GENCODE v22 <NA>
knownGeneOld3 Old UCSC Genes <NA>
ccdsGene CCDS <NA>
refGene RefSeq Genes <NA>
xenoRefGene Other RefSeq <NA>
vegaGene Vega Genes Vega Protein Genes
vegaPseudoGene Vega Genes Vega Pseudogenes
ensGene Ensembl Genes <NA>
> makeTxDbPackageFromUCSC(version="1.0.0", + maintainer="Chao-Jen Wong <cwon2@fredhutch.org>", + destDir="~/tapscott/hg38", + author="Chao-Jen Wong", + genome="hg38", + tablename="ensGene") Error in normArgTrack(track, trackids) : Unknown track: Ensembl Genes
> sessionInfo() R Under development (unstable) (2016-05-01 r70566) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 14.04.3 LTS locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats4 parallel stats graphics grDevices utils datasets [8] methods base other attached packages: [1] rtracklayer_1.31.13 GenomicFeatures_1.23.31 AnnotationDbi_1.33.15 [4] Biobase_2.31.3 GenomicRanges_1.23.27 GenomeInfoDb_1.7.6 [7] IRanges_2.5.47 S4Vectors_0.9.52 BiocGenerics_0.17.5 [10] biomaRt_2.27.2 BiocInstaller_1.21.6 loaded via a namespace (and not attached): [1] XML_3.98-1.4 Rsamtools_1.23.11 [3] Biostrings_2.39.14 GenomicAlignments_1.7.21 [5] bitops_1.0-6 DBI_0.4 [7] RSQLite_1.0.0 zlibbioc_1.17.1 [9] XVector_0.11.8 BiocParallel_1.5.22 [11] tools_3.4.0 RCurl_1.95-4.8 [13] SummarizedExperiment_1.1.27 >

Oops, I goofed with GenomicFeatures 1.25.6 (no more knownGene table). With GenomicFeatures 1.25.7:
supportedUCSCtables("hg38") # tablename track subtrack # 1 knownGene GENCODE v22 <NA> # 2 knownGeneOld8 Old UCSC Genes <NA> # 3 knownGeneOld7 Old UCSC Genes <NA> # 4 knownGeneOld6 Old UCSC Genes <NA> # 5 knownGeneOld4 Old UCSC Genes <NA> # 6 knownGeneOld3 Old UCSC Genes <NA> # 7 ccdsGene CCDS <NA> # 8 refGene RefSeq Genes <NA> # 9 xenoRefGene Other RefSeq <NA> # 10 sibGene SIB Genes <NA> # 11 sgpGene SGP Genes <NA> # 12 geneid Geneid Genes <NA> # 13 genscan Genscan Genes <NA> # 14 augustusGene Augustus <NA> # 15 augustusHints Augustus Augustus Hints # 16 augustusXRA Augustus Augustus De Novo # 17 augustusAbinitio Augustus Augustus Ab InitioI also added
browseUCSCtrack()for browsing the UCSC track page for a given genome/table. It can be used to quickly check that a combination of genome/tablename actually exists. See ?browseUCSCtrackfor more information.H.
Thanks, Herve. browseUCSCtrack() is very helpful!!!!
Great! Glad you like it :-)
H.