Skip to content
Prev 26462 / 63424 Next

Name length of function argument? (PR#10357)

Please study the help page before posting.  In the example code given 'p' 
is partially matching the second argument 'par' of optim(), so the unnamed 
first argument matches to the second argument 'fn'.

In the second case, 'f' matches 'par' and 'pp' matches '...', and 'f' is 
of 'type closure'.
On Fri, 19 Oct 2007, deiwiks at icr.gess.ethz.ch wrote:

            
Yes, it is a bug in your code.  From the R FAQ:

    If a command you are familiar with causes an R error message in a case
    where its usual definition ought to be reasonable, it is probably a
    bug.   If a command does the wrong thing, that is a bug.  But be sure
    you know for certain in what it ought to have done.  If you aren't
    familiar with the command, or don't know for certain how the command is
    supposed to work, then it might actually be working right.

Asking a question on R-bugs is an indication that you do not 'know for 
certain'.