From r@ndy@c@@l@i @ending from gm@il@com  Tue Aug 28 21:07:36 2018
From: r@ndy@c@@l@i @ending from gm@il@com (Randy Lai)
Date: Tue, 28 Aug 2018 15:07:36 -0400
Subject: [Rd] "utils::file.edit" does not understand "editor" with
 additional arguments
Message-ID: <6EF551C0-AC7B-412F-965C-36EECBDFBFEA@gmail.com>

I am using Sublime Text as my editor. If I run `subl -n .Rprofile` in bash, a file would be opened in a new window.

Back in R, if I run this

> file.edit(".Rprofile", editor="'subl -n'")
sh: 'subl -n': command not found
Warning message:
error in running command

However, the interesting bit happens when I run

edit(1:10, editor="'subl -n?")

It does open Sublime Text. It seems that `file.edit` and `edit` are behaving differently when ?editor? has additional arguments.

Randy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20180828/28f66613/attachment.sig>


[Rd] "utils::file.edit" does not understand "editor" with additional arguments
Randy Lai