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

2018-08-29 Thread Prof Brian Ripley
We do not have the 'at a minimum' information requested by the posting guide, and I cannot reproduce anything like this on a Unix-alike. Both file.edit and edit.default call the same underlying C code, and that single-quotes the 'editor' argument to allow for spaces in its path/name so I would

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

2018-08-28 Thread Randy Lai
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 happe