From ihaka@stat.auckland.ac.nz  Sat Sep 13 02:20:43 1997
From: ihaka@stat.auckland.ac.nz (Ross Ihaka)
Date: Sat, 13 Sep 1997 13:20:43 +1200 (NZST)
Subject: R-alpha: bug in passing of empty  (...)
Message-ID: <199709130120.NAA21321@stat1.stat.auckland.ac.nz>

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

Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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