[Rd] How to build a list with missing values? What is missing, anyway?

Thomas Lumley tlumley at uw.edu
Sun Oct 7 21:54:54 CEST 2012


On Fri, Oct 5, 2012 at 4:07 PM, Bert Gunter <gunter.berton at gene.com> wrote:
> On Thu, Oct 4, 2012 at 6:31 PM, Peter Meilstrup

>> explain some things, such as under what circumstances one would get a
>> "`...` used in incorrect context" error.
>
> How could it possibly know that?
>
> -- Bert

By looking at the code that throws the error.

The code is in src/main/eval.c, and the error is thrown in several
places when the symbol ... appears in a call being evaluated, and the
value of the symbol is neither the special DOTSXP type nor NULL.  That
is, if you use ... in code and there isn't a ... formal argument in
scope.

   -thomas


-- 
Thomas Lumley
Professor of Biostatistics
University of Auckland



More information about the R-devel mailing list