Re: [Rd] Reset an embedded R.dll

2008-05-15 Thread Bernd Schoeller
On Thu, 15 May 2008 06:04:51 -, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: Last question: Will I need to UNPROTECT_PTR all references held, or will the call to Rf_endEmbeddedR also free protected references? What is a 'reference' here? Right, my question was imprecise. I meant 'SEXP

[Rd] R Console preference pane has the blues (PR#11466)

2008-05-15 Thread ryan
Full_Name: Ryan Lovett Version: 2.7.0 OS: Mac OS X 10.5.2 Submission from: (NULL) (128.32.135.6) Each of the six color selection buttons in the Console preference pane revert to blue after attempting to modify the color. The Defaults button and Transparency slider do work. __

[Rd] Missing gfortran man page (PR#11465)

2008-05-15 Thread ryan
Full_Name: Ryan Lovett Version: 2.7.0 OS: Mac OS X 10.5.2 Submission from: (NULL) (128.32.135.6) The gfortran package for Mac OS X is missing a man page. It does have an .info file but I think a man page would still be useful for those who use R's gfortran. __

Re: [Rd] Reset an embedded R.dll

2008-05-15 Thread Prof Brian Ripley
On Thu, 15 May 2008, Bernd Schoeller wrote: On Thu, 15 May 2008 06:04:51 -, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: Last question: Will I need to UNPROTECT_PTR all references held, or will the call to Rf_endEmbeddedR also free protected references? What is a 'reference' here? Rig

[Rd] ** operator

2008-05-15 Thread Tobias Verbeke
Dear list, I did not find any mentioning of the fact that the ** operator can be used as a synonym for the ^ operator. > 5 ** 2 [1] 25 Searching of ** in the R Reference Index only leads to some examples in the mgcv documentation. Equally ?"**" does not open the arithmetic operators help page,

Re: [Rd] ** operator

2008-05-15 Thread Duncan Murdoch
On 15/05/2008 7:07 AM, Tobias Verbeke wrote: Dear list, I did not find any mentioning of the fact that the ** operator can be used as a synonym for the ^ operator. > 5 ** 2 [1] 25 Searching of ** in the R Reference Index only leads to some examples in the mgcv documentation. Equally ?"**" do

[Rd] interrupting native code

2008-05-15 Thread Kjell Konis
Hello, I have some native code that I would like to allow users to interrupt. However, I would like to do it more gracefully than with R_CheckUserInterrupt(). The solution I came up with is to call the following abort function periodically - if it returns 1 then I clean up and return. i

Re: [Rd] ** operator

2008-05-15 Thread Barry Rowlingson
Duncan Murdoch wrote: It's fairly unlikely to go away, but it's an old undocumented feature, so use at your own risk. There are lots of other undocumented features, but maybe no others at the lexical level. Check out src/main/gram.y if you want to search for more at that level, and src/* if

Re: [Rd] ** operator

2008-05-15 Thread Roger Bivand
On Thu, 15 May 2008, Barry Rowlingson wrote: Duncan Murdoch wrote: It's fairly unlikely to go away, but it's an old undocumented feature, so use at your own risk. There are lots of other undocumented features, but maybe no others at the lexical level. Check out src/main/gram.y if you wan

Re: [Rd] ** operator

2008-05-15 Thread Peter Dalgaard
Roger Bivand wrote: > On Thu, 15 May 2008, Barry Rowlingson wrote: > >> Duncan Murdoch wrote: >> >>> It's fairly unlikely to go away, but it's an old undocumented >>> feature, so >>> use at your own risk. There are lots of other undocumented >>> features, but >>> maybe no others at the lexical

Re: [Rd] interrupting native code

2008-05-15 Thread Prof Brian Ripley
How is R_interrupts_pending going to be set? It is set in the interrupt handler for SIGINT, but that is not the only way to indicate an interrupt, and it is not necessarily available to users of GUIs and embedded R. Without servicing the GUIs all interaction will be dead, including sending a

Re: [Rd] ** operator

2008-05-15 Thread Prof Brian Ripley
On Thu, 15 May 2008, Roger Bivand wrote: On Thu, 15 May 2008, Barry Rowlingson wrote: Duncan Murdoch wrote: It's fairly unlikely to go away, but it's an old undocumented feature, so use at your own risk. There are lots of other undocumented features, but maybe no others at the lexical le

Re: [Rd] ** operator

2008-05-15 Thread Prof Brian Ripley
I found an entry for the '** operator' in the index of the 1988 Blue Book, with a reference to p. 431. I see nothing about it on p. 431 (or 432), but that is the help page for 'Deprecated'. So I surmise that this was part of a version of S prior to that which started life as QPE (with first-c

Re: [Rd] basename/dirname produce incorrect results

2008-05-15 Thread Prof Brian Ripley
I'm sorry, but that example make no sense to me -- you need to mark the encoding (and don't send HTML that will get stripped). This is presumably Windows, given the name. On Thu, 15 May 2008, ronggui wrote: The incorrect result incurs when the file path contains Chinese character. It seems th

Re: [Rd] Bug in poly() (PR#11243)

2008-05-15 Thread russell-lenth
I don't understand why this is a bug in usage. Is it because the 2nd argument is not named? I get the same behavior if I do name it: = [R version 2.6.2 (2008-02-08), Windows XP Pro] R> x = rep(1:4,3) R> y = (1:12)^1.5 R> lm(y ~ poly(x, degree=10)) Call: lm(formula = y ~ poly(x, degree = 1

Re: [Rd] Bug in poly() (PR#11243)

2008-05-15 Thread Prof Brian Ripley
The reason is that you asked for more terms than can exist. You seem unaware that 2.6.2 is obsolete, and that there are changes in R-patched, with the following NEWS item: o poly() has additional checks against user error (as in PR#11243). and that the help page now says degree: the