Dunno, really. Some strange things can happen with nonstandard evaluation, like
having a function designed to evaluate something in the parent of its caller,
but nonetheless sometimes being called from the command line. So things are
sometimes defensively coded.
-pd
> On 28 Mar 2016, at 00:08
On 3/27/16 2:46 PM, peter dalgaard wrote:
On 27 Mar 2016, at 22:05 , Mick Jordan wrote:
As I understand
https://stat.ethz.ch/R-manual/R-devel/library/base/html/sys.parent.html
sys.function(n) returns the function associated with stack frame n.
Since frame 0 is defined as .GlobalEnv which is not
> On 27 Mar 2016, at 22:05 , Mick Jordan wrote:
>
> As I understand
> https://stat.ethz.ch/R-manual/R-devel/library/base/html/sys.parent.html
> sys.function(n) returns the function associated with stack frame n.
> Since frame 0 is defined as .GlobalEnv which is not associated with a
> functio
As I understand
https://stat.ethz.ch/R-manual/R-devel/library/base/html/sys.parent.html
sys.function(n) returns the function associated with stack frame n.
Since frame 0 is defined as .GlobalEnv which is not associated with a
function, I would expect this to always return NULL. However, it does