From Kurt.Hornik@ci.tuwien.ac.at  Mon Aug 11 14:36:08 1997
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Mon, 11 Aug 1997 15:36:08 +0200
Subject: R-alpha: R 0.50.a3 minor remark
Message-ID: <199708111336.PAA00459@aragorn.ci.tuwien.ac.at>

Just a minor remark.  We now have

> args(ls)
function (name, pos = -1, envir = pos.to.env(pos), all.names = FALSE, 
        pattern) 

but

> pos.to.env(-1)
Error in pos.to.env(-1) : invalid argument

whereas

> pos.to.env(length(search()))
NULL


Perhaps pos.to.env should really return the corresponding environments,
just for sake of completeness ... or the fun of it.

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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: R 0.50.a3 minor remark
Kurt Hornik