How do I open a script file in RStudio using an R command?

前端 未结 4 1384
慢半拍i
慢半拍i 2021-01-30 16:21

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

4条回答
  •  攒了一身酷
    2021-01-30 16:48

    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)

提交回复
热议问题