> On Oct 18, 2015, at 10:51 AM, Christian Hoffmann <christian at echoffmann.ch> wrote: > > How can I do e.g. print("unknown"(ls())) and get the variable values in my current environment? From your example, it sounds like what you want is simply this: sapply(ls(), get) James