title: Execute R script within R project from MAC terminal
body: <p>I have a set of projects in R studio which I open and run a script within them on a daily basis. I want to automate this procedure to save time, by creating a bash script that will open the projects, run the script within them and then close them. I am to the point that I can open a project by running <code>open project.Rproj</code> but I have not found how to execute a script once I open the project in some automated manner (using a bash command).
  Any ideas? Thank you.</p>