To cite scan in publications use:

Wilbert J, Lüke T (2022). “scan: Single-Case Data Analyses for Single and Multiple Baseline Designs.” https://CRAN.R-project.org/package=scan.

Corresponding BibTeX entry:

  @Misc{,
    title = {scan: Single-Case Data Analyses for Single and Multiple
      Baseline Designs},
    shorttitle = {scan},
    publisher = {CRAN},
    author = {Jürgen Wilbert and Timo Lüke},
    year = {2022},
    url = {https://CRAN.R-project.org/package=scan},
  }