When I execute the edit() function in RStudio I am receiving the following error message.
Error in .External2(C_edit, name, file, title, editor) : problem with running editor vi
When I execute R directly from a terminal and run the edit() function it opens vi. I'm not sure why this is happening rather than opening the R Data Editor