[R] Weird R's behaviour with a quoted name

Kamil Bartoń kamil.barton at uni-wuerzburg.de
Mon Nov 21 17:30:54 CET 2011


Can someone explain why the following happens?
---
:> quote(some.name)
some.name
:> bar <- structure(quote(some.name), class = "foo")
:> quote(some.name)
Error in print(some.name) : object 'some.name' not found
:> bar <- quote(some.name)
:> quote(some.name)
Error in print(some.name) : object 'some.name' not found
:> bar <- as.name("some.name")
:> quote(some.name)
some.name
---



More information about the R-help mailing list