I have a set of helper functions that open groups of related source files. This works great, except for one issue: I would like to open the files in a new window.
I apologize. After my original post on Stackoverflow, I was advised on StackOverflow to post here - suggesting that this was the appropriate venue. I can place a link from Stackoverflow to the solution here or do whatever else you think is appropriate.
I suspect you're not going to be able to do it without hacking around a bitLOT. After digging around a bit more I think you'd need to run your own forked R Studio and add an API function which can move source tabs between editors. It could be done, but unless it's absolutely critical to be able to do, your energies are probably better spent elsewhere.
This is the XML list of commands which contains the commandIDs you can invoke using executeCommand(). A particular one of interest is on line 1192, popoutDoc. Running the command,
rstudioapi::executeCommand("popoutDoc")
Will pop out whatever the active tab is in the editor window, so, you could first navigating to a file then pop it out.
This, unfortunately, will pop out each file into its own source editor window and I don't see a way to programatically move tabs between editor windows.
By playing around with it you might see or find somethign I did not, but this is one place you might start your attack.