[R] static vs. lexical scope

Francesco Ariis |@-m| @end|ng |rom @r||@@|t
Wed Sep 25 11:02:42 CEST 2019


Dear R users/developers,
while ploughing through "An Introduction to R" [1], I found the
expression "static scope" (in contraposition to "lexical scope").

I was a bit puzzled by the difference (since e.g. Wikipedia conflates the
two) until I found this document [2].

Maybe the Introduction should link to it (or similar page) with text
"In case you are interest in the difference between static and lexical
scope, check this explanation"?
Thanks
-F

[1] https://cran.r-project.org/doc/manuals/r-release/R-intro.html#Scope
[2] https://cran.r-project.org/doc/misc/lexical.tex



More information about the R-help mailing list