SO i want to execute a R script as an executable file, so I followed this tutorial. http://www.r-datacollection.com/blog/Making-R-files-executable/
And then configured it so that it would always open with the same program and so on.
Now the problem is that when I create the test file they provide, everything works fine, but as soon as i introduce a code such as
workd=dirname(rstudioapi::getSourceEditorContext()$path)
the executing black panel closes down.
Any ideas why that is?