From dstr7320 at uni.sydney.edu.au  Wed May 28 08:00:16 2014
From: dstr7320 at uni.sydney.edu.au (Dario Strbenac)
Date: Wed, 28 May 2014 06:00:16 +0000
Subject: [Rd] Ellipsis to Two Functions When One Has Nested Functions
Message-ID: <1401256816354.86462@uni.sydney.edu.au>

Hello

If I have a function

aFunction <- function(data, alpha, ...)
{
    transform(alpha, ...)
    rowMeans(data) > alpha
}

f <- function(data, selection, ...)
{
    selected <- selection(data, ...)
    plot(data[selected, ], ...)
}

f(aDataset, aFunction, alpha = 10, pch = 19, transform = sqrt)

and selection calls another function, which has ... and that function calls other functions, is there an easier way than getting the formals of all the functions called internally by selection, and all of the formals of functions called by plot ? Is there any option to change the error into a warning message ?

--------------------------------------
Dario Strbenac
PhD Student
University of Sydney
Camperdown NSW 2050
Australia



[Rd] Ellipsis to Two Functions When One Has Nested Functions
Dario Strbenac