I am working on a project where I need to run an R script within Stata. I have the following code written:
shell "/Users/alexanderrbilly/Desktop/Neel/cleaner.R" CMD BATCH "cleaner.R"
Despite even changing the command directory before this (which shouldn't matter), I keep getting the same error:
/bin/bash: /Users/alexanderrbilly/Desktop/Neel/cleaner.R: Permission denied
Let me know if I'm doing something erroneous or how I may get around this issue.