Another aspect of this cleverness is that starting a script in an arbitrary directory NOT inside a package results in the current directory set to the user's home directory, while starting the script using R does what you would expect: does not change the current working directory.
On Thu, Jun 22, 2023 at 10:38 AM Martin Maechler <maech...@stat.math.ethz.ch> wrote: > >>>>> Mikael Jagan > >>>>> on Wed, 21 Jun 2023 12:41:02 -0400 writes: > > > Surely this behaviour is just a case of ESS being "too clever", > sourcing > > *.R files in special way when it detects that a file belongs to a > package > > (loading dependencies automatically, etc.)? > > > The function ss() is defined inside of .ess.source(), which is > defined here: > > > > https://github.com/emacs-ess/ESS/blob/5c4ae91cefa5c56fd13b204a9a996825af836a67/etc/ESSR/R/.basic.R#L168 > > > If you think that there is a bug, then you could report it there ... > > > Mikael > > Indeed. > I have now replied to this CC'ing to ESS-help@... instead of R-devel@... > > It's visible in the mailing list *archives* now: > https://stat.ethz.ch/pipermail/ess-help/2023-June/013203.html > > Martin > > > [.................] > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel