Skip to content
Prev 4477 / 63421 Next

Cautionary tale about c (PR#695)

J.C.Rougier@durham.ac.uk writes:
Hmm. This would seem to be doable by having line 2 of rm() as

get("c","package:base")(list, names)

You do have to be circumspect: there are calls to match(),
as.character(), and pos.to.env() in that construction, but neither
uses c().
 
Currently, get("c", envir=NULL) also works, but (for other reasons)
I'm on the warpath against using NULL for the base environment.