Re: [Rd] A possible improvement to apropos

2006-12-14 Thread Martin Maechler
Hi Seth, > "Seth" == Seth Falcon <[EMAIL PROTECTED]> > on Wed, 13 Dec 2006 16:38:02 -0800 writes: Seth> Hello all, I've had the following apropos alternative Seth> in my ~/.Rprofile for some time, and have found it Seth> more useful than the current version. Basically, my

Re: [Rd] Phonetic symbols (IPA) in R graphics

2006-12-14 Thread Giampiero Salvi
Hi Paul, I tried the following from your slides, perhaps you can see the error: 1) I downloaded the fonts and the encoding file into the directories Type1 and encodings (in my current directory) 2) I ran R from the same directory (ver 2.4.0) 3) I added the font mapping for the pdf and postscrip

Re: [Rd] A possible improvement to apropos

2006-12-14 Thread stefano iacus
I would second Seth here, because the search is case insensitive but results are not. This is not strictly related to the language. For example, on my shell, the last entries of apropos system are xload(1) - system load average display for X xlogo(1) - X Window

Re: [Rd] A possible improvement to apropos

2006-12-14 Thread Seth Falcon
Martin Maechler <[EMAIL PROTECTED]> writes: > Hi Seth, > Could you live with typing 'i=T' (i.e. ignore.case=TRUE)? I can live with my ~/.Rprofile, I suppose. :-) > In principle, I'd like to keep the default as ignore.case=FALSE, > since we'd really should teach the users that R > *is* case s

[Rd] Detecting compilation under R

2006-12-14 Thread Barry Rowlingson
The docs tell me: "The header files define USING_R, which should be used to test if the code is indeed being used with R." but surely you only get that if you #include , which you can only do if you are using R. If you have code that you might want to compile in R and for other purposes, how c

Re: [Rd] Detecting compilation under R

2006-12-14 Thread Barry Rowlingson
Prof Brian Ripley wrote: > If *no* R.h is around: easy to solve. Have a dummy R.h somewhere? > What is BUILD? Oh, pardon me for forgetting the arbitrary capitalisation of R CMD thingies. Can someone come up with a mnemonic for remembering that BATCH, COMPILE, SHLIB, INSTALL, LINK and REMO

Re: [Rd] Detecting compilation under R

2006-12-14 Thread Prof Brian Ripley
On Thu, 14 Dec 2006, Barry Rowlingson wrote: > The docs tell me: > > "The header files define USING_R, which should be used to test if the > code is indeed being used with R." > > but surely you only get that if you #include , which you can only Nope, also if you include , which you can do under

Re: [Rd] Detecting compilation under R

2006-12-14 Thread Barry Rowlingson
> So the problem is that you needed rather > > #include > #ifdef USING_R > x = rand_unif(0.0,1.0); > #else > #include > x = gsl_runif(0.0,1.0); > #endif > > since if R.h is not around, the include will not include it. > If R.h is not around, the preprocessor will throw a tantrum: cc

Re: [Rd] Detecting compilation under R

2006-12-14 Thread Prof Brian Ripley
On Thu, 14 Dec 2006, Barry Rowlingson wrote: [Silently discarding the answer to his question, and breaching 'fair use' copyright provisions.] >> So the problem is that you needed rather >> >> #include >> #ifdef USING_R >> x = rand_unif(0.0,1.0); >> #else >> #include >> x = gsl_runif(0.0,1.0);

Re: [Rd] A possible improvement to apropos

2006-12-14 Thread Robert Gentleman
I would vastly prefer apropos to be case insensitive by default. The point of it is to find things similar to a string, not the same as, and given that capitalization in R is somewhat erratic (due to many authors, and some of those changing their minds over the years), I find the current apropo

Re: [Rd] Phonetic symbols (IPA) in R graphics

2006-12-14 Thread Paul Murrell
Hi Giampiero Salvi wrote: > Hi Paul, > I tried the following from your slides, perhaps you can see the > error: > > 1) I downloaded the fonts and the encoding file into the directories >Type1 and encodings (in my current directory) > 2) I ran R from the same directory (ver 2.4.0) > 3) I adde

Re: [Rd] [R] Segfault in pure R code

2006-12-14 Thread Göran Broström
On 12/13/06, Peter Dalgaard <[EMAIL PROTECTED]> wrote: [...] > Ouch. Call the marines... > > The error comes from the garbage collector, which means that something > got corrupted in internal data structures some time previously. > > The most important thing is to preserve the bug. Rebuild anyth

Re: [Rd] [R] Segfault in pure R code

2006-12-14 Thread Göran Broström
On 12/14/06, Göran Broström <[EMAIL PROTECTED]> wrote: > On 12/13/06, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > > [...] > > > Ouch. Call the marines... > > > > The error comes from the garbage collector, which means that something > > got corrupted in internal data structures some time previousl

Re: [Rd] Phonetic symbols (IPA) in R graphics

2006-12-14 Thread Giampiero Salvi
Hi Paul, first thank you for helping out. On Fri, 15 Dec 2006, Paul Murrell wrote: > Exactly. The process would be simpler if you drew directly to > PostScript or PDF via postscript() or pdf(). > > Also, the text() call should be ... > > text(10,10,"whatever",family="ipa") [...] > I'm not sure

Re: [Rd] [R] Segfault in pure R code

2006-12-14 Thread Göran Broström
On 12/13/06, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > That's in the memory manager and indicates prior memory corruption. > Please re-run under valgrind, plus gctorture(TRUE) if needed. I did, no errors (but slow)! > However, I would start by seeing if this occurs in a single-byte domain if

Re: [Rd] A possible improvement to apropos

2006-12-14 Thread Martin Maechler
> "Seth" == Seth Falcon <[EMAIL PROTECTED]> > on Thu, 14 Dec 2006 07:16:30 -0800 writes: Seth> Martin Maechler <[EMAIL PROTECTED]> writes: >> Hi Seth, Could you live with typing 'i=T' (i.e. >> ignore.case=TRUE)? Seth> I can live with my ~/.Rprofile, I suppose. :-)