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

前端 未结 4 1387
慢半拍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 17:13

    I had the same issue that utils::file_edit() within my package opens outside R-studio. I changed it to usethis::edit_file(). With this function the file opens inside R-studio.

提交回复
热议问题