If the Bioconductor version of TFBSTools < 1.31.2, please install the development version of TFBSTools from github.
TFBSTools
devtools::install_github("ge11232002/TFBSTools")