Thanks Simon, I didn't know that! That's definitely a compelling
reason to leave the current default untouched and to eschew any
finicky attempts to find back-up editors.
Still, I think there is benefit from checking quickly that 'editor'
exists at run-time in file.edit() -- the current failure mo
Michael,
vi is the only editor that is part of the POSIX standard. Embedded systems have
built-in support only for vi (e.g., busybox) so if a system has any editor
support at all it is most likely to be vi - it is ubiquitous which is why it's
the most logical default. (FWIW no distributions I
Dear Tomas and list,
El mar., 10 dic. 2024 11:33, Tomas Kalibera escribió:
>
> On 12/10/24 00:35, Lluís Revilla wrote:
> > Dear R-devel,
> >
> > I read with interest the recent blog post on how R will have parallel
> > downloads, on blog.r-project.org
> > (https://blog.r-project.org/2024/12/02/fa
> As for the conjecture
To quickly clarify, I mean "it is much more common to write code from
lightweight environments [now as compared to the year 2000 when the
EDITOR default was set to 'vi']". We agree about where most code is
written still today.
And yes, we can set VISUAL/EDITOR (as my perso
Michael,
This looks rather like a 'compile-time versus run-time' question to me. If
you look at etc/Renviron.in in the R sources you see a number of choices,
some of them with configure-time determined values (which I tend to override
with values for the Debian package).
For 'EDIT' it is
##
It looks like R has defaulted to using 'vi' for file.edit() (via
EDITOR since ~24 years ago[1][2].
These days I think it is much more common to write code from
lightweight environments, e.g. Docker files which strip all
unnecessary commands. On such machines, it is not safe to assume 'vi'
is insta
On 12/10/24 00:35, Lluís Revilla wrote:
Dear R-devel,
I read with interest the recent blog post on how R will have parallel
downloads, on blog.r-project.org
(https://blog.r-project.org/2024/12/02/faster-downloads/index.html).
Thanks Tomas!
The blog mentions that one of the areas where this will