this_file | R Documentation |
This function locates the running script's location. The code is from steamer25's StackOverflow post here: https://stackoverflow.com/questions/1815606/rscript-determine-path-of-the-executing-script This enables both sourcing and Rscript-ing.
this_file()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.