Hi, and welcome!
Take a look at the Bioconductor sitePath package (https://bioconductor.org/packages/release/bioc/html/sitePath.html) package and its zkiv_align function. Bioconductor needs installation
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install()
and to install Bioconductor packages
BiocManager::install(sitePath")
I'm not a biological scientist, so this may not be the right package for your purposes. I hope though that it will point you in the right direction.