If I have two or more projects open in different RStudio windows, and I in the terminal bar I use the open macOS command to open a file, the file opens in whatever project was opened first rather than the project associated with the terminal window where I executed the open command. Is there a way to have the file open in the project associated with the RStudio window from which it is executed? If possible, I want to behavior to be the same as when I click on file in the Files tab.
Thanks in advance for any help.