To cite package ‘markovchain’ in publications use:

  Spedicato G (2017). “Discrete Time Markov Chains with R.” _The R
  Journal_, *9*(2), 84-104.
  <https://journal.r-project.org/articles/RJ-2017-036/index.html>.

A BibTeX entry for LaTeX users is

  @Article{,
    title = {Discrete Time Markov Chains with R},
    author = {Giorgio Alfredo Spedicato},
    journal = {The R Journal},
    year = {2017},
    volume = {9},
    number = {2},
    pages = {84--104},
    url = {https://journal.r-project.org/articles/RJ-2017-036/index.html},
  }
