set_wd_to_script_path {hablar} | 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.