3/21/2023 0 Comments Run code in r for mac![]() ![]() ![]() I see that others execute R scripts via something like: shell "C:\Program Files\R\R-2.15.1\bin\圆4\R.exe" CMD BATCH test.RHowever, I am unsure about the equivalent R command pathway on a Mac. I can successfully *open* the script in Rstudio, via Stata, this way: shell open -a RStudio "PATHWAY/filename.R"And in terminal, I can successfully *run* the script through the command: Rscript "PATHWAY/filename.R"However, shell Rscript "PATHWAY/filename.R" returns the error /bin/bash: Rscript: command not found. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |