Skip to content
Back to formatted view

Raw Message

Message-ID: <50d1c22d0904160546h28ac7f8bo813d6f850ea71b95@mail.gmail.com>
Date: 2009-04-16T12:46:36Z
From: ivo welch
Subject: static variable?

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