1

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

bigtunacan
  • 4,873
  • 8
  • 40
  • 73

1 Answers1

1

edit() uses the default system editor by default on non-windows systems, yours seem to be vi and incorrectly configured.

Try:

edit(x, editor="internal")

for the RStudio one.

jeremycg
  • 24,657
  • 5
  • 63
  • 74