script: Identify Script Name

View source: R/script.R

scriptR 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()

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

Related to script in script...