Re: [Rd] problem with parse(text=quote(name))

2010-03-19 Thread Prof Brian Ripley
This comes from bolting on srcrefs: as.character() was used for srcrefs, but *not* for coercion (as documented), and quote(myName) was coerced to NULL. The simplest way out is to use text <- as.character(text) early on. Maybe coerceVector should handle symbols, though. On Fri, 12 Mar 2010, Wil

[Rd] problem with parse(text=quote(name))

2010-03-12 Thread William Dunlap
Calling parse(text=quote(name)) or text=as.name("name") makes parse() prompt for input from the command line and then it returns a parse of the initial characters of 'name' (depending on how many characters were typed at the prompt). E.g., > parse(text=quote(myName)) ?1/3 expression(myN