I have a simple script file called test.R. It\'s saved in the working directory. When I go to File > Open > test.R, it opens the file in the edit
test.R
File > Open > test.R
You are looking for file.edit
file.edit('test.R')
should open the file in an editor (if you are in RStudio, this should default to RStudio)
RStudio