New behavior when running script in package directory?
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 <maechler at 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:
>
> 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 at ... instead of R-devel at ... It's visible in the mailing list *archives* now: https://stat.ethz.ch/pipermail/ess-help/2023-June/013203.html Martin [.................]
______________________________________________ R-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel