[R] static variable?

ivo welch ivowel at gmail.com
Thu Apr 16 14:46:36 CEST 2009


dear R experts:

does R have "static" variables that are local to functions?  I know
that they are usually better avoided (although they are better than
globals).

However, I would like to have a function print how often it was
invoked when it is invoked, or at least print its name only once to
STDOUT when it is invoked many times.

possible without <<- ?

sincerely,

/iaw




More information about the R-help mailing list