Re: [Rd] prevent reassignment of function names

2006-04-07 Thread Prof Brian Ripley
On Fri, 7 Apr 2006, Henrik Bengtsson wrote: > On 4/6/06, Seth Falcon <[EMAIL PROTECTED]> wrote: >> Tim Bergsma <[EMAIL PROTECTED]> writes: >> >>> Hi. >>> >>> I'm trying to find a systematic way to prevent assignment to names of >>> existing functions. >> >> An alternative would be to put your func

Re: [Rd] prevent reassignment of function names

2006-04-06 Thread Henrik Bengtsson
On 4/6/06, Seth Falcon <[EMAIL PROTECTED]> wrote: > Tim Bergsma <[EMAIL PROTECTED]> writes: > > > Hi. > > > > I'm trying to find a systematic way to prevent assignment to names of > > existing functions. > > An alternative would be to put your functions into an R package with a > namespace. Then y

Re: [Rd] prevent reassignment of function names

2006-04-06 Thread Seth Falcon
Tim Bergsma <[EMAIL PROTECTED]> writes: > Hi. > > I'm trying to find a systematic way to prevent assignment to names of > existing functions. An alternative would be to put your functions into an R package with a namespace. Then you won't be able to overwrite them (easily). + seth ___

Re: [Rd] prevent reassignment of function names

2006-04-06 Thread Thomas Lumley
On Thu, 6 Apr 2006, Tim Bergsma wrote: > Hi. > > I'm trying to find a systematic way to prevent assignment to names of > existing functions. I've tried reassigning to the assignment operator, > with mixed results. The function definition for "<-" below works as > hoped for the demonstrated assig

[Rd] prevent reassignment of function names

2006-04-06 Thread Tim Bergsma
Hi. I'm trying to find a systematic way to prevent assignment to names of existing functions. I've tried reassigning to the assignment operator, with mixed results. The function definition for "<-" below works as hoped for the demonstrated assignments to a and c. However, for the assignment