What is the purpose of the rho environment argument in R? -


as explained here, when internal or primitive function called, last argument rho, environment in call executed.

on other hand, have r_globalcontext->sysparentenvironment() returns in r. sysparent field described as

/* evaluation context structure */ typedef struct rcntxt {     ...     sexp sysparent;     /* environment closure called */     ... } 

it seems meaning of rho , sysparent same.

thus, questions are:

  1. if same, why bother pass rho argument?
  2. if not same, how/when differ?
  3. if inside .call function, how hold of rho call internal r functions, short of passing r wrapper?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -