To cite package ‘scriptName’ in publications use:

Sibley T (2019). scriptName: Determine a Script's Filename from Within the Script Itself. R package version 1.0.1, https://github.com/mullinslab/scriptname.

Corresponding BibTeX entry:

  @Manual{,
    title = {scriptName: Determine a Script's Filename from Within the
      Script Itself},
    author = {Thomas Sibley},
    year = {2019},
    note = {R package version 1.0.1},
    url = {https://github.com/mullinslab/scriptname},
  }