set_wd_to_script_path | R Documentation |
Sets working directory to the path where the R-script is located. Only works inside [Rstudio] and in a script (i.e. not in the console). Additionally, the R-script needs to be saved in a path to work.
set_wd_to_script_path()
NULL. In the background the working directory has changed if not any errors occurred.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.