Skip to content
Prev 366036 / 398502 Next

how do I define a function which is equivalent to `deparse(substitute(x))`?

Dear Frederick,

I found this a challenging puzzle, and it took me awhile to come up with an alternative, and I think slightly simpler, solution:
+     deparse(eval(substitute(substitute(y)), 
+                  env=parent.frame()))
+ }
+     message(desub(x))
+ }
log

Best,
 John

-----------------------------
John Fox, Professor
McMaster University
Hamilton, Ontario
Canada L8S 4M4
Web: socserv.mcmaster.ca/jfox