To cite package ‘scriptloc’ in publications use:

Chandran Sakthivel N (2023). scriptloc: Get the Location of the R Script that is Being Sourced/Executed. R package version 1.0.0, https://CRAN.R-project.org/package=scriptloc.

Corresponding BibTeX entry:

  @Manual{,
    title = {scriptloc: Get the Location of the R Script that is Being
      Sourced/Executed},
    author = {Naren {Chandran Sakthivel}},
    year = {2023},
    note = {R package version 1.0.0},
    url = {https://CRAN.R-project.org/package=scriptloc},
  }