Kmerize provides convenience tools for creating and analyzing k-mers.
You can install the released version of kmerize from CRAN with:
install.packages("remotes") remotes::install_github("c5sire/kmerize", dependencies = TRUE)
See the basic tutorial.