script {script} | R Documentation |
Identify Script Name
Description
Identifies script name in a variety of contexts, e.g. interactively or when script is sourced. Attempts to support RStudio environment.
Usage
script()
Value
character: path to current file, or empty string if indeterminate
Examples
script()
[Package script version 0.1.1 Index]