Is there an approved way of removing an element from an object of class lazy_dots?
require(lazyeval)
f <- function(a, ...)
lazy_dots(...)
lst <- f(1, x=2, y=3, z=4)
lst$z <- NULL
#Error in UseMethod("as.lazy") :
# no applicable method for 'as.lazy' applied to an object of class "NULL"
lst[["z"]] <- NULL
# this works
lst <- lst[-which(names(lst) == "z")]
# this also works
Setting the list element to NULL using the $ operator gives an error; but using [[ indexing works. I don't know if either behaviour will change in the future though. Using a negative index with which() also works, but that's rather clumsy.
I'm using lazyeval 0.1.10.