script: Identify Script Name

Identifies the name of the current script in a variety of contexts, e.g. interactively or when sourced. Attempts to support RStudio environment. Based on <https://stackoverflow.com/a/32016824/2292993> and <https://stackoverflow.com/a/35842176/2292993>.

Getting started

Package details

AuthorTim Bergsma [aut, cre]
MaintainerTim Bergsma <bergsmat@gmail.com>
LicenseGPL-3
Version0.1.3
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("script")

Try the script package in your browser

Any scripts or data that you put into this service are public.

script documentation built on April 3, 2025, 5:52 p.m.