Either way, there should be a check at the beginning of the function that ensures the necessary reference is installed. This means that users will find out immediately whether the function call will fail due to one of these not being installed (rather than getting partway through the pipeline).
It looks like
TxDb.Hsapiens.UCSC.hg19.knownGene
orTxDb.Hsapiens.UCSC.hg38.knownGene
is always used. https://github.com/neurogenomics/EpiCompare/blob/2b84d5eba23aec7ca6c5db1bfbd27e4d1606dc29/inst/markdown/EpiCompare.Rmd#L66Either way, there should be a check at the beginning of the function that ensures the necessary reference is installed. This means that users will find out immediately whether the function call will fail due to one of these not being installed (rather than getting partway through the pipeline).