Skip to content
Prev 293340 / 398502 Next

Problems accessing environment() in function

Thanks a lot for your answer!
I am aware that I am passing non existing arguments here, which is why 
my method of creating a list of the environment "as.list(environment())" 
seems to fail in this case.

What I need is a way to just skip non existing objects when I create my 
list. In my given example I was intending to receive an empty list, 
since no valid arguments were passed to test2().

In other words: I want a list containing all _existing_ variable/value 
combinations and just skip the missing ones.

Thanks again for your time

Best wishes,
Heiko Neuhaus