.this_script | R Documentation |
Gives you the file input path regardless of whether you are running the script in rstudio, knitr or on the console.
.this_script()
the file path of the currently executed script or an error if the command is executed outside of a script.
try({
.this_script()
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.