Gives you the file input path regardless of whether you are running the script in rstudio, knitr or on the console.
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()
})
#> Error in .this_script() : could not find function ".this_script"