Run Rscript from terminal
2 min readMar 18, 2021
Usually when programming in R I use Rstudio as IDE.
But if you want to run an R script directly from the terminal because you need it for your workflow you can keep reading.
To run a MacOS terminal script you need to add it in your .zshrc this line
export PATH="/Library/Frameworks/R.framework/Versions/Current/Resources:$PATH"