RStudio: Open Source File in New Window Using rstudioapi / navigateToFile

I couldn't help but notice that you recently posted a very similar question on community.rstudio.com and on a different website.

The current way you've done this is generally considered not-OK

From: FAQ: Is it OK if I cross-post?