Dear all, I set a generic s4 funciton, then add a method.
When I do this, I notice that when pressing tab, the arguments to this method do not appear like they do for generic functions, instead I get an elipsis. i.e. > setClass("batchFile") [1] "batchFile" > > setGeneric("Gen1", function(batchFile, ...) standardGeneric("Gen1")) [1] "Gen1" > > setMethod("Gen1", signature = "batchFile", definition = + function(batchFile, xxx, yyy, zzz) { return(batchFile) } + ) [1] "Gen1" > Gen1( ...= batchFile= Note that xx, yy and zzz are not displayed when pressing <tab> after Gen1( contrast that to > Gen1 <- function(batchFile, xxx, yyy, zzz) { return(batchFile) } > Gen1( batchFile= xxx= yyy= zzz= Is there a way to allow <tab> to show the extra options? Or has this been deliberately disabled in order to allow someone to set a number of different methods with method specific arguments with a single generic? Many thanks, Jim -- James Perkins, PhD student Institute of Structural and Molecular Biology Division of Biosciences University College London Gower Steet London, WC1E 6BT UK email: jperk...@biochem.ucl.ac.uk phone: 0207 679 2198 [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel