Re: [R] Documentation for library() and how to specify missing arguments

2010-07-02 Thread Gabor Grothendieck
On Fri, Jul 2, 2010 at 9:27 AM, Jeffrey J. Hallman wrote: > Gabor Grothendieck writes: >> Try this: >> >>> mx <- formals(identity)$x >>> missing(mx) >> [1] TRUE >>> sin(mx) >> Error in sin(mx) : 'mx' is missing > > Neat. There's no way to look at 'mx' because calling any function > with it as an

Re: [R] Documentation for library() and how to specify missing arguments

2010-07-02 Thread Jeffrey J. Hallman
Gabor Grothendieck writes: > Try this: > >> mx <- formals(identity)$x >> missing(mx) > [1] TRUE >> sin(mx) > Error in sin(mx) : 'mx' is missing Neat. There's no way to look at 'mx' because calling any function with it as an argument gives that same error message, including the auto print function

Re: [R] Documentation for library() and how to specify missing arguments

2010-07-01 Thread Gabor Grothendieck
On Thu, Jul 1, 2010 at 1:24 PM, Allan Engelhardt wrote: > > Is there in the language a lexical x such that f(x, ...) is the same as f(, > ...)? > Try this: > mx <- formals(identity)$x > missing(mx) [1] TRUE > sin(mx) Error in sin(mx) : 'mx' is missing ___

Re: [R] Documentation for library() and how to specify missing arguments

2010-07-01 Thread David Winsemius
On Jul 1, 2010, at 1:24 PM, Allan Engelhardt wrote: I can, after carefully reading about the returned values, see why library("MASS", "MASS", character.only=TRUE) has to chose between loading the package and displaying the help (I thought I had found a nice shortcut), but wouldn't the docum

[R] Documentation for library() and how to specify missing arguments

2010-07-01 Thread Allan Engelhardt
I can, after carefully reading about the returned values, see why library("MASS", "MASS", character.only=TRUE) has to chose between loading the package and displaying the help (I thought I had found a nice shortcut), but wouldn't the documentation be better if it said that the two are incompat