Re: [Rd] Reset an embedded R.dll

2008-05-15 Thread Bernd Schoeller
On Thu, 15 May 2008 07:15:15 +0200, Prof Brian Ripley [EMAIL PROTECTED] wrote: What I would like to know, and I have not yet found an answer in the documentation: is there a way to 'reset' the interpreter to bring it to the state that it was directly after the call of the initialization

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 07:15:15 +0200, Prof Brian Ripley [EMAIL PROTECTED] wrote: What I would like to know, and I have not yet found an answer in the documentation: is there a way to 'reset' the interpreter to bring it to the state that it was

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] ** 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 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] 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

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

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

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 =