Description Usage Arguments Value
Given the value passed by the parameter ps_path, we can assume that there must be a Rmd-source file in the current working directory ps_cwd which contains the path to the odg graphics file given in ps_path. Hence, we can search through all Rmd-files in ps_cwd for the value in ps_path. If we find a match in a single Rmd-source file, we return the name of that file, otherwise we return NULL.
1  | get_current_rmd_src(ps_path, ps_cwd)
 | 
ps_path | 
 name of and path to odg-graphics file  | 
ps_cwd | 
 current working directory  | 
s_rmd_src_result resulting Rmd-source file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.