motiftools is not currently available from CRAN, but you can install the development version from github with:
devtools::install_github("ddiez/motiftools")