dot-this_script: Get the file path of the current script

.this_scriptR Documentation

Get the file path of the current script

Description

Gives you the file input path regardless of whether you are running the script in rstudio, knitr or on the console.

Usage

.this_script()

Value

the file path of the currently executed script or an error if the command is executed outside of a script.

Examples

try({
.this_script()
})

terminological/ggrrr documentation built on June 15, 2024, 6:35 a.m.