Is there a way to automate the running the R script after launching R studio

Is there a way to automate the running the R script after launching R studio with the below command:
open -na Rstudio pivot.R?

Hi! This post is getting off-topic for the thread it's in, and seems to be the same basic question as your other topic. I think it would be more in keeping with our community guideline of "Keep It Tidy" to move this question to your other topic, with a link to this thread.

1 Like

Here's a good article on what's considered best practices for this type of thing:

https://csgillespie.github.io/efficientR/3-3-r-startup.html#r-startup