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

前端 未结 4 1388
慢半拍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条回答
  •  旧时难觅i
    2021-01-30 16:51

    It appears that if you are using RStudio then another option is to use rstudioapi::navigateToFile("test.R")

提交回复
热议问题