R-alpha: bug in passing of empty (...)

Ross Ihaka ihaka@stat.auckland.ac.nz
Sat, 13 Sep 1997 13:20:43 +1200 (NZST)

This is a "feature" of ls().  When invoked with no arguments it returns
the list of variables \emph{in the environment it is called from}.
This is to make it useful in conjunction with debug() and browser().
It allows you find out what the current local variables are.

To get the same effect as a top level ls(), you must expicitly do
	ls(pos=1)             # may fail if we allow attaching at pos=1
	ls(envir=.GlobalEnv)  # safer

r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch