Re: [Rd] R-Project build system: DESTDIR support

2006-04-06 Thread Claudio Fontana
Hello, we had a quick exchange some time ago about putting DESTDIR support in R-Project. DESTDIR is not meant for run-time relocation, but for staged installation. An already configured package can be installed to a temporary destination, with all information, hard-coded paths, or even run-time r

[Rd] Documentation error in ?write (PR#8752)

2006-04-06 Thread pinard
Hi, people. ?write shows the following contents in Examples section: # create a 2 by 5 matrix x <- matrix(1:10,ncol=5) # the file data contains x, two rows, five cols # 1 3 5 6 9 will form the first row write(t(x)) On the next to last line, "6" should be replaced by "7"

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

Re: [Rd] extending strsplit(): supply pattern to keep, not to split by

2006-04-06 Thread Gabor Grothendieck
To follow up, strapply has been added to the gsubfn package (gsubfn 0.1-1) which should make it easier to address this problem. Its basically just a sapply call around gsubfn which returns the transformed matches rather than performing substitution. Its analogous to apply: apply(object,