Message-ID: <AB3FEB19-0E47-4DDE-95E8-2F3615C56FA0@seehuhn.de>
Date: 2012-12-09T18:39:18Z
From: Jochen Voß
Subject: turning R expressions into functions?
In-Reply-To: <E66794E69CFDE04D9A70842786030B932DC439@PA-MBX01.na.tibco.com>
Dear all,
Sorry for my slow answer, and thanks for all the suggestion.
On 23 Jul 2012, at 22:25, William Dunlap <wdunlap at tibco.com> wrote:
> You can use the odd idiom substitute(...()) to get the unevaluated ... arguments:
>> f1 <- function(x, ...) substitute(...())
>> f1(1, warning("Hmm"), stop("Oops"), cat("some output\n"))
This is what I finally settled on using.
Many thanks,
Jochen
--
http://seehuhn.de/