Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-08 Thread Paul Murrell
Hi Gabor Grothendieck wrote: Thanks. Yet one other comment to consider when thinking about this. Even if its not possible or advisable to guarantee order, even without the hash= idea, it may be possible to guarantee that default names are generated in some order that can be used by getChildre

[Rd] Re: [R] How to vectorize

2005-06-08 Thread Gabor Grothendieck
To r-devel: The discussion below on r-help brought out the following: > plot(1:10) > text(5,5,lab=expression(italic(22*"33"))) has the effect of italicizing 33 (which is a character string) but not 22 (which is not). Is this intended behavior? It seems strange. I am using "R version 2.1.0, 2

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
Thanks. Yet one other comment to consider when thinking about this. Even if its not possible or advisable to guarantee order, even without the hash= idea, it may be possible to guarantee that default names are generated in some order that can be used by getChildren to ensure that it returns the c

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Paul Murrell
Hi Gabor Grothendieck wrote: Here is the code once again. This time I have supplied two names methods and a getChildren.viewport function to encapsulate the corresponding grid internals. It would be easiest if grid provided these itself but in the absence of that this does encapsulate depen

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
Just one additional item. Look at: ?new.env for an example of where this approach is used in R, noting the hash= argument. On 6/7/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Yes, I understand that although such order is convenient for > the user as the significant reduction in code size

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
Yes, I understand that although such order is convenient for the user as the significant reduction in code size here shows. I wonder if there might be some performance parameter (e.g. hash) to control it. If hash = TRUE then no guarantee is provided. Otherwise order is kept. On 6/7/05, Paul Mur

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
Here is the code once again. This time I have supplied two names methods and a getChildren.viewport function to encapsulate the corresponding grid internals. It would be easiest if grid provided these itself but in the absence of that this does encapsulate dependencies on grid internals to a we

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Paul Murrell
Hi Gabor Grothendieck wrote: On 6/7/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Gabor Grothendieck wrote: On 6/6/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Gabor Grothendieck wrote: On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Thanks. I have mucked around i

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
On 6/7/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Gabor Grothendieck wrote: > > On 6/6/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > > > >>Hi > >> > >> > >>Gabor Grothendieck wrote: > >> > >>>On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > >>> > >>> > Hi > >>> > >>> > >>>Than

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Paul Murrell
Hi Gabor Grothendieck wrote: On 6/6/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Gabor Grothendieck wrote: On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Thanks. I have mucked around in vpTree structures and discovered its actually quite easy to specify children so I have

Re: [Rd] Re: update.packages keeps trying to update gregmisc

2005-06-07 Thread Gabor Grothendieck
That worked! Thanks. On 6/7/05, Brian D Ripley <[EMAIL PROTECTED]> wrote: > This is due to the inconsistent way gregmisc has been unbundled. There > was a gregmisc 2.0-7 containing gplots etc as part of a bundle, and there > are also versions of gplots etc *with the same version number* which ar

Re: [Rd] Re: update.packages keeps trying to update gregmisc

2005-06-06 Thread Brian D Ripley
This is due to the inconsistent way gregmisc has been unbundled. There was a gregmisc 2.0-7 containing gplots etc as part of a bundle, and there are also versions of gplots etc *with the same version number* which are not part of a bundle. The only way out I have found is to remove gregmisc and,

[Rd] Re: update.packages keeps trying to update gregmisc

2005-06-06 Thread Gabor Grothendieck
One other point I just noticed. If I run new.packages() it reports this, namely that gregmisc has extra contents of NA. > np <- new.packages() --- Please select a CRAN mirror for use in this session --- Warning messages: 1: bundle 'VR' is incompletely installed in: new.packages() 2: bundle 'VR'

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-06 Thread Gabor Grothendieck
On 6/6/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Gabor Grothendieck wrote: > > On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > > > >>Hi > > > > > > Thanks. I have mucked around in vpTree structures and discovered its > > actually quite easy to specify children so I have changed

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-06 Thread Paul Murrell
Hi Gabor Grothendieck wrote: On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Thanks. I have mucked around in vpTree structures and discovered its actually quite easy to specify children so I have changed my example so that instead of naming the children of 'layout' and then remember

Re: [Rd] Re: [R] A long digression on packages

2005-06-05 Thread Dirk Eddelbuettel
On 5 June 2005 at 12:48, M. Edward (Ed) Borasky wrote: | Dirk Eddelbuettel has done a lot of work integrating the CRAN and other | R package collections with the Debian GNU/Linux package management | system. This rather neatly solves the non-CRAN dependency problems, at | least for Debian. Thanks

Re: [Rd] Re: [R] A long digression on packages

2005-06-05 Thread M. Edward (Ed) Borasky
Gabor Grothendieck wrote: >I think that some time ago there was a discussion of having a downloadable >file that oould be used to help.search through so that a relatively small >download and no package installation would allow a comprehensive >offline help.search of all CRAN packages. An online

Re: [Rd] Re: [R] A long digression on packages

2005-06-05 Thread Gabor Grothendieck
On 6/5/05, M. Edward (Ed) Borasky <[EMAIL PROTECTED]> wrote: > > > Duncan Murdoch wrote: > > > Of course, with disk sizes as they are now, it's not unreasonable to > > install all of the contributed CRAN packages on a PC. Then > > help.search() *will* do searches through them all. > > Some of

Re: [Rd] Re: [R] A long digression on packages

2005-06-05 Thread M. Edward (Ed) Borasky
Duncan Murdoch wrote: > Of course, with disk sizes as they are now, it's not unreasonable to > install all of the contributed CRAN packages on a PC. Then > help.search() *will* do searches through them all. Some of them are very specialized, and some of them have non-CRAN dependencies. I've do

Re: [Rd] Re: [R] A long digression on packages

2005-06-05 Thread Dirk Eddelbuettel
On 5 June 2005 at 17:31, Peter Dalgaard wrote: | Dirk Eddelbuettel <[EMAIL PROTECTED]> writes: | | > Jim raises good points, as do the replies. On the topic of '500+ and | > growing', let me add my pet peeve: It is mighty impossible to know /what/ | > changed /when/ in CRANland. | > | > Being De

Re: [Rd] Re: [R] A long digression on packages

2005-06-05 Thread Peter Dalgaard
Dirk Eddelbuettel <[EMAIL PROTECTED]> writes: > Jim raises good points, as do the replies. On the topic of '500+ and > growing', let me add my pet peeve: It is mighty impossible to know /what/ > changed /when/ in CRANland. > > Being Debian maintainer for a fair number of packages, I owe users of

Re: [Rd] Re: [R] A long digression on packages

2005-06-05 Thread Dirk Eddelbuettel
Jim raises good points, as do the replies. On the topic of '500+ and growing', let me add my pet peeve: It is mighty impossible to know /what/ changed /when/ in CRANland. Being Debian maintainer for a fair number of packages, I owe users of those packages timely updates. But the best I can do is

[Rd] Re: [R] A long digression on packages

2005-06-05 Thread Duncan Murdoch
Hi. I think this discussion is more relevant to R-devel, so that's where I've sent my reply. Jim Lemon wrote: Hello again, First, thanks for the help that got the latest plotrix package finished. I had been planning to write something about packages since Scott Waichler offered the gantt.ch

Re: [Rd] Re: [R] p-value > 1 in fisher.test()

2005-06-05 Thread Ted Harding
On 04-Jun-05 Martin Maechler wrote: >> "UweL" == Uwe Ligges <[EMAIL PROTECTED]> >> on Sat, 04 Jun 2005 11:43:34 +0200 writes: > > UweL> (Ted Harding) wrote: > >> On 03-Jun-05 Ted Harding wrote: > >> [...] > >> I have a suggestion (maybe it should also go to R-devel). >

Re: [Rd] Re: [R] p-value > 1 in fisher.test()

2005-06-04 Thread Martin Maechler
> "UweL" == Uwe Ligges <[EMAIL PROTECTED]> > on Sat, 04 Jun 2005 11:43:34 +0200 writes: UweL> (Ted Harding) wrote: >> On 03-Jun-05 Ted Harding wrote: >> >>> And on mine >>> >>> (A: PII, Red Had 9, R-1.8.0): >>> >>> ff <- c(0,10,250,5000); dim(ff) <- c

[Rd] Re: [R] p-value > 1 in fisher.test()

2005-06-04 Thread Uwe Ligges
(Ted Harding) wrote: On 03-Jun-05 Ted Harding wrote: And on mine (A: PII, Red Had 9, R-1.8.0): ff <- c(0,10,250,5000); dim(ff) <- c(2,2); 1-fisher.test(ff)$p.value [1] 1.268219e-11 (B: PIII, SuSE 7.2, R-2.1.0beta): ff <- c(0,10,250,5000); dim(ff) <- c(2,2); 1-fisher.test(ff)$p.value [1]

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-03 Thread Gabor Grothendieck
On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi Thanks. I have mucked around in vpTree structures and discovered its actually quite easy to specify children so I have changed my example so that instead of naming the children of 'layout' and then remembering coordinates linked to the name

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-02 Thread Gabor Grothendieck
On 6/1/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Gabor Grothendieck wrote: > > [moved from r-help to r-devel] > > > > On 5/31/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > > > > > >>> # mm.row[j] gives the row in the layout of the jth cell > >>> # mm.col[j] gives the col in the l

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-01 Thread Gabor Grothendieck
On 6/1/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Gabor Grothendieck wrote: > > [moved from r-help to r-devel] > > > > On 5/31/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > > > > > >>> # mm.row[j] gives the row in the layout of the jth cell > >>> # mm.col[j] gives the col in the l

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-01 Thread Paul Murrell
Hi Gabor Grothendieck wrote: [moved from r-help to r-devel] On 5/31/05, Paul Murrell <[EMAIL PROTECTED]> wrote: # mm.row[j] gives the row in the layout of the jth cell # mm.col[j] gives the col in the layout of the jth cell mm <- matrix(seq(nr*nc), nr, nc) mm.row <- c(row(mm)) mm.

[Rd] Re: 1/tan(-0) != 1/tan(0)

2005-06-01 Thread Morten Welinder
> For the real problem, the R source (in C), It's simple > to work around the fact that > qcauchy(0, log=TRUE) > for Morten's code proposal gives -Inf instead of +Inf. Ouch. Good catch. Here is what happened: I reduced 1-exp(x) to -expm1(x) which is actual wrong for x=0 because the results w

[Rd] Re: [R] Problem going back to a viewport with gridBase

2005-05-31 Thread Gabor Grothendieck
[moved from r-help to r-devel] On 5/31/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > ># mm.row[j] gives the row in the layout of the jth cell > ># mm.col[j] gives the col in the layout of the jth cell > >mm <- matrix(seq(nr*nc), nr, nc) > >mm.row <- c(row(mm)) > >mm.col <- c(c

[Rd] Re: [R] Fortran 95 in R ?

2005-05-18 Thread Prof Brian Ripley
First you need a functional F95 compiler. I believe `g95' is obselete, replaced by gfortran. For how to use that, please do read the R-admin manual in R 2.1.0 -- it can be done if you use a bug-fixed version of gfortran (post gcc-4.0.0) or a workaround. Reliable F95 compilers such as those o

[Rd] Re: Calling R functions from Java (D0c)

2005-05-15 Thread RICKY_CHEN
XP > Submission from: (NULL) (145.117.31.248) > > > On our computers, which have windows xp sp2 installed and have a 64 bit > amd/athlon processor, the following simple code > > png("test.png") > plot(1:10,main="hello") > dev.off() > > > resul

[Rd] Re: [CSL #268481] The Whore Lived Like a German (PR#7869)

2005-05-15 Thread lab
Greetings. (This is an automated response. There is no need to reply.) Your message regarding: The Whore Lived Like a German has been received and assigned a request number of 268481. In order help us track the progress of this request, we ask that you note the following: 1) Please save thi

[Rd] Re: [CSL #268455] Trotz Stellenabbau

2005-05-15 Thread lab
Greetings. (This is an automated response. There is no need to reply.) Your message regarding: Trotz Stellenabbau has been received and assigned a request number of 268455. In order help us track the progress of this request, we ask that you note the following: 1) Please save this email --

[Rd] Re: [CSL #268348] 60 Jahre Befreiung: Wer feiert mit?

2005-05-15 Thread lab
Greetings. (This is an automated response. There is no need to reply.) Your message regarding: 60 Jahre Befreiung: Wer feiert mit? has been received and assigned a request number of 268348. In order help us track the progress of this request, we ask that you note the following: 1) Please sa

[Rd] Re: [CSL #266660] Vorbildliche Aktion (PR#7867)

2005-05-15 Thread lab
Greetings. (This is an automated response. There is no need to reply.) Your message regarding: Vorbildliche Aktion has been received and assigned a request number of 20. In order help us track the progress of this request, we ask that you note the following: 1) Please save this email --

[Rd] Re: [CSL #265686] Vorbildliche Aktion (PR#7866)

2005-05-15 Thread lab
Greetings. (This is an automated response. There is no need to reply.) Your message regarding: Vorbildliche Aktion has been received and assigned a request number of 265686. In order help us track the progress of this request, we ask that you note the following: 1) Please save this email --

[Rd] Re: Calling R functions from Java

2005-05-14 Thread D0c
Hey anyone explored how to pass java objects (e.g Vector or String) to R as a to be converted to a data.frame? On 4/29/05, D0c <[EMAIL PROTECTED]> wrote: > Hey guys, > I got a java gui app which loads up data into a table. How can i use R > to perform statistical functions on the data in the table

[Rd] Re: [CSL #263000] Verbrechen der deutschen Frau

2005-05-14 Thread lab
Greetings. (This is an automated response. There is no need to reply.) Your message regarding: Verbrechen der deutschen Frau has been received and assigned a request number of 263000. In order help us track the progress of this request, we ask that you note the following: 1) Please save thi

[Rd] Re: 80-page Pharma complimentary report-Emerging Business models in Pharma (PR#7847)

2005-05-10 Thread pharma
--=_NextPart_84815C5ABAF209EF376268C8 Content-type: text/plain; charset=ISO-8859-1 Hello! This is just a quick note to inform you about an 80-page report on the Pharmaceutical Industry that we're able to provide you - at no cost. Compiled by some of the best analysts in the industry, the

[Rd] Re: Good day

2005-05-10 Thread jose
I apologize for this automatic reply to your email. To control spam, I now allow incoming messages only from senders I have approved beforehand. If you would like to be added to my list of approved senders, please fill out the short request form (see link below). Once I approve you, I will receiv

[Rd] Re: NextMethod problem

2005-05-07 Thread Gabor Grothendieck
Its probably obvious but just for completeness, I missed the generic definition in pasting this into my post so I have added it below: On 5/7/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Can anyone shed any light on what is going wrong here? > Its based on simplifying some actual code that

Re: [Rd] Re: [R] Unbundling gregmisc (was: loading gap package)

2005-05-04 Thread Martin Maechler
> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> > on Wed, 4 May 2005 16:29:33 +0100 (BST) writes: ... BDR> .. we need some education about how to use the BDR> power of *.packages (and we need to get the MacOS BDR> versions in place). and maybe w

[Rd] Re: [R-SIG-Mac] Workspace [Was: MacOS X: update.packages(type="mac.binary")]

2005-05-04 Thread Rob J Goedman
Hi Jari, In addition to Simon's suggestion below, recently someone fixed this by ensuring R.app has write permission to its working directory. Rob On May 4, 2005, at 5:23 AM, Simon Urbanek wrote: Starting from bash prompt in Terminal.app fails as well with error ".onLoad failed in 'loadNamespa

[Rd] Re: [R] Unbundling gregmisc (was: loading gap package)

2005-05-04 Thread Prof Brian Ripley
On Wed, 4 May 2005, Duncan Murdoch wrote: Warnes, Gregory R wrote: Let me redirect the topic a bit. I've been considering unbundling gregmisc. So let's move to R-devel. The pro would be that people would find the component packages (i.e. gdata) more easily. The con is that the packages have a nu

Re: [Rd] Re: Calling R functions from Java

2005-05-02 Thread D0c
Thanks Simon, say i was to use JRI / SJava instead, could you give some examples of how i would implement showing a plot() in java on a windows machine? On 5/2/05, Simon Urbanek <[EMAIL PROTECTED]> wrote: > On May 2, 2005, at 2:55 AM, D0c wrote: > > > Hey guys thanks for the help. I found Rserve

Re: [Rd] Re: Calling R functions from Java

2005-05-02 Thread Simon Urbanek
On May 2, 2005, at 2:55 AM, D0c wrote: Hey guys thanks for the help. I found Rserve to be a solution i can work with. i'll just use the JRClient to connect to Rserve. However i have another problem. How can i get a nice graph from Rserve using JRCLient using the plot() function? There are sev

[Rd] Re: Calling R functions from Java

2005-05-01 Thread D0c
Hey guys thanks for the help. I found Rserve to be a solution i can work with. i'll just use the JRClient to connect to Rserve. However i have another problem. How can i get a nice graph from Rserve using JRCLient using the plot() function? Or for that matter a simple summary() of a dataset to be p

RE: [Rd] RE: as.numeric method for objects of class "difftime"

2005-04-30 Thread Bill.Venables
Brian, : -Original Message- : From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] : Sent: Sunday, 1 May 2005 2:41 PM : To: Venables, Bill (CMIS, Cleveland) : Cc: r-devel@stat.math.ethz.ch : Subject: Re: [Rd] RE: as.numeric method for objects of class : "difftime" : : :

Re: [Rd] RE: as.numeric method for objects of class "difftime"

2005-04-30 Thread Prof Brian Ripley
I am very surprised that people would expect as.numeric to do something meaningful on time differences (or times, come to that). Perhaps the best thing is to stop it altogether. The selection of "auto" was the best for the original purpose: people in general do not want a difference of 3 days

[Rd] RE: as.numeric method for objects of class "difftime"

2005-04-30 Thread Bill.Venables
I had a couple of private replies to the message below, all very supportive of the idea. I see that where I should have looked first is at the function difftime, the constructor (which will hardly ever be used except by people who know about its separate existence from Ops.POSIXt). Thus encourage

[Rd] Re: (PR#7826) ... segfault during build of 2.1.0 on RH9; print.POSIXct ...

2005-04-30 Thread Jskud
Dear Peter, Thank you very much for your kind and helpful reply. As I mentioned in a followup email to r-bugs, indeed, one aspect of this issue is a (user specified) shorter stack than that expected by R -- I had only allowed 1 MB of stack space a long long time ago, and forgotten about it. Due

[Rd] Re: [R] Warning from Rcmd check - data could not find data set

2005-04-30 Thread Prof Brian Ripley
On Sat, 30 Apr 2005, Kjetil Brinchmann Halvorsen wrote: Prof Brian Ripley wrote: On Fri, 29 Apr 2005, Kjetil Brinchmann Halvorsen wrote: This is rw2010 from CRAN. When running Rcmd check on a package I get: Warning in utils::data(list = al, envir = data_env) : data set 'vowel.test' not found War

[Rd] Re: [R] Warning from Rcmd check - data could not find data set

2005-04-30 Thread Kjetil Brinchmann Halvorsen
Prof Brian Ripley wrote: On Fri, 29 Apr 2005, Kjetil Brinchmann Halvorsen wrote: This is rw2010 from CRAN. When running Rcmd check on a package I get: Warning in utils::data(list = al, envir = data_env) : data set 'vowel.test' not found Warning in utils::data(list = al, envir = data_env) : da

[Rd] Re: [R] strange behaviour of importFrom directive in name space

2005-04-28 Thread Duncan Murdoch
This is really an R-devel question, and I've moved it there. Florian Hahne wrote: Dear listers, After activating the name space for my bioconductor package (prada) I successfully ran R CMD check. However when loading the package in R and running the examples the imported function brewer.pal from pa

Re: [Rd] Re: [Filtered!] Re: [R] postscript (eps) / latex / par(mfg=...) / problem!

2005-04-27 Thread Marc Schwartz
On Wed, 2005-04-27 at 23:48 +0100, Dan Bolser wrote: > On Tue, 26 Apr 2005, Marc Schwartz wrote: > >So, unless I am missing something and without yet delving further into > >graphic device specific source code, I suspect that there is a problem > >when creating PS/EPS/PDF files in conjunction with

[Rd] Re: postscript (eps) / latex / par(mfg=...) / problem! (PR#7820)

2005-04-27 Thread MSchwartz
Just for the sake of linkage and further information, a related post to this bug is on r-devel at: https://stat.ethz.ch/pipermail/r-devel/2005-April/033016.html Marc Schwartz __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listin

[Rd] Re: [Filtered!] Re: [R] postscript (eps) / latex / par(mfg=...) / problem!

2005-04-27 Thread Dan Bolser
On Tue, 26 Apr 2005, Marc Schwartz wrote: >Warning: This message has had one or more attachments removed >Warning: (x.mfg.eps). >Warning: Please read the "FilterNotice.txt" attachment(s) for more information. > >[MOVED TO R-DEVEL] > >On Tue, 2005-04-26 at 18:05 +0100, Dan Bolser wrote: >> Should I

[Rd] RE: [R] Advice for calling a C function

2005-04-27 Thread Huntsinger, Reid
You have the dimensions switched, in double x [*MATDESC][*OBJ]; so when the dimensions aren't equal you do get odd things. You might be better off defining functions to index into mat with a pair of subscripts directly (.C() copies the argument anyway). Come to think of it, there might be macro

Re: [Rd] RE: [R] when can we expect Prof Tierney's compiled R?

2005-04-27 Thread Prof Brian Ripley
On Tue, 26 Apr 2005, Vadim Ogranovich wrote: Thank you for sharing the benchmark results. The improvement is very substantial, I am looking forward to the release of the byte compiler! The arithmetic shows that x[i]<- is still the bottleneck. I suspect that this is due to a very involved dispatchin

[Rd] RE: [R] when can we expect Prof Tierney's compiled R?

2005-04-26 Thread Vadim Ogranovich
Luke, Thank you for sharing the benchmark results. The improvement is very substantial, I am looking forward to the release of the byte compiler! The arithmetic shows that x[i]<- is still the bottleneck. I suspect that this is due to a very involved dispatching/search for the appropriate function

[Rd] RE: [R] when can we expect Prof Tierney's compiled R?

2005-04-26 Thread Luke Tierney
For what it's worth (probably not much as these simple benchmarks are rarely representative of real code and so need to be taken with a huge chunk of salt) here is what happens with your examples in R 2.1.0 with the current byte compiler. Define your examples as functions: n = 1e6; iA = seq(2,n

[Rd] Re: [R] postscript (eps) / latex / par(mfg=...) / problem!

2005-04-26 Thread Marc Schwartz
[MOVED TO R-DEVEL] On Tue, 2005-04-26 at 18:05 +0100, Dan Bolser wrote: > Should I post this to 'bugs'? Dan, I suspect part of the problem here is that your code and example were difficult to replicate and there may have been a focus on the page rotation issue, which I think is a red herring her

[Rd] Re: [R] R-2.1.0 doesn't compile on FreeBSD6-CURRENT

2005-04-26 Thread Prof Brian Ripley
[This is an inappropriate question for R-help. Perhaps R-devel (see the posting guide) but more likely a FreeBSD mailing list. Moved to R-devel.] R itself does not refer to __builtin_alloca. That is something being mapped by the FreeBSD headers, and it should be `builtin' using gcc. (No ver

[Rd] RE: [R] when can we expect Prof Tierney's compiled R?

2005-04-22 Thread Vadim Ogranovich
If we are on the subject of byte compilation, let me bring a couple of examples which have been puzzling me for some time. I'd like to know a) if the compilation will likely to improve the performance for this type of computations, and b) at least roughly understand the reasons for the observed num

[Rd] Re: Embedded R and x11

2005-04-20 Thread Thomas Friedrichsmeier
Hi again, > I figured that the reason for this might be, that R_ProcessEvents () and > handleEvent () in devX11.c do not get called (of course I might be > completely wrong?). So I tried calling R_ProcessEvents () manually, but I > can't get that to link (unresolved symbol R_ProcessEvents). > Any

Re: [Rd] Re: [R] pl/R and MacOS X using R binary

2005-04-19 Thread stefano iacus
On 19/apr/05, at 16:40, Joe Conway wrote: Sean Davis wrote: On Apr 19, 2005, at 8:56 AM, Prof Brian Ripley wrote: Please do consult the posting guide as to the right place. (I've moved this to R-devel and included Joe Conway. Joe: perhaps you could make you email address more readily available i

[Rd] Re: [R] pl/R and MacOS X using R binary

2005-04-19 Thread Joe Conway
Sean Davis wrote: On Apr 19, 2005, at 8:56 AM, Prof Brian Ripley wrote: Please do consult the posting guide as to the right place. (I've moved this to R-devel and included Joe Conway. Joe: perhaps you could make you email address more readily available in the PL/R pages.) Yes, I'll do that. Sorr

[Rd] Re: [R] pl/R and MacOS X using R binary

2005-04-19 Thread Sean Davis
On Apr 19, 2005, at 8:56 AM, Prof Brian Ripley wrote: [Moved from R-help.] On Tue, 19 Apr 2005, Sean Davis wrote: I'm sorry if this is too off-topic--feel free to ignore. I am interested in using pl/R, an amazing "plugin" for the postgresql database. As is typical of these types of applications

[Rd] Re: [R] pl/R and MacOS X using R binary

2005-04-19 Thread Prof Brian Ripley
[Moved from R-help.] On Tue, 19 Apr 2005, Sean Davis wrote: I'm sorry if this is too off-topic--feel free to ignore. I am interested in using pl/R, an amazing "plugin" for the postgresql database. As is typical of these types of applications, pl/R needs to link against a shared library. Howeve

Re: [Rd] RE: A 'true' R-wrapper for C++ classes

2005-04-18 Thread Duncan Murdoch
> Sorry about the mistake in the previous post, here is the corrected > version: And I've just added responses to part of it: > (3) The above model lacks something like an 'environment' for the pointer > to > the C++ object to live in it. Assume we create the foo class in R like: > > obj <- fo

[Rd] RE: A 'true' R-wrapper for C++ classes

2005-04-18 Thread Ali -
Sorry about the mistake in the previous post, here is the corrected version: Hello I am trying to wrap some C++ classes into R. (1) Comparing the OOP and methods packages, I have came to this conclusion that OOP works much better for this wrapper -- please correct me if I am wrong. One question is

RE: [Rd] Re: F90

2005-04-03 Thread Liaw, Andy
I saw the following in a Springer catalog recently: Developing Statistical Software in Fortran 95 Lemmon, David R., Schafer, Joseph L. 2005, XVI, 328 p., Softcover ISBN: 0-387-23817-4 which has the following in the description: Through detailed examples, readers are shown how to call Fortran pr

[Rd] Re: F90

2005-04-03 Thread Gorjanc Gregor
Hello! I posted this question already a week ago, but didn't get any response. I will try again if anybody, who can answer this, wasn't reading mails during easter holidays. Has anyone successfully compiled F90 sources in R-package? I found the same question on r-devel list from 2002 and I wonde

[Rd] Re: simtest with lm object: depends on order in formula

2005-04-01 Thread Torsten Hothorn
On Fri, 1 Apr 2005, Christoph Buser wrote: > Hi > > I used the simtest function from the package multcomp. When > using simtest with an lm object, it seems to depend on the order > of the variables in the formula. See the code for an example: > > library(multcomp) > set.seed(1) > # response > y <-

Re: [Rd] RE: [R] Mapping actual to expected columns for princomp object

2005-03-24 Thread Prof Brian Ripley
I am currently working on this (and on the predict method for prcomp, which does exist, BTW). It needs a bit more in the way of sanity checks. Note that the predict method for lm is for a formula-driven fit, whereas that for princomp is not, hence some of the differences. It is not reasonabl

[Rd] RE: [R] Mapping actual to expected columns for princomp object

2005-03-24 Thread Liaw, Andy
[Re-directing to R-devel, as I think this needs changes to the code.] Can I suggest a modification to stats:predict.princomp so that it will check for column (variable) names? In src/library/stats/R/princomp-add.R, insert the following after line 4: if (!is.null(cn <- names(object$center)))

[Rd] RE: improved [Qurb #879958]

2005-03-23 Thread Miles Paschini
This is an automated message. I apologize for the inconvenience, but I need your help in fighting spam. I'm using a program called Qurb which automatically maintains a list of approved senders for me. Messages from approved senders go directly to my Inbox. Messages from addresses that Qurb hasn't

[Rd] Re: [R-SIG-Mac] NaN and linear algebra

2005-03-21 Thread David Firth
I am sorry that I wasn't clear. All that I meant was that *this* problem can result in different behaviour in "ordinary" statistical applications. For example, if the objective function in a call to optim() involves calling one of these linear algebra routines, the result may be NaN (on syste

[Rd] Re: [R-SIG-Mac] NaN and linear algebra

2005-03-20 Thread stefano iacus
No, blas/veclib is tested, so aprt this extreme case you should report some other more commonly used cases in which something fails on OS X. This will help us to work it out. As said, I'll try some tests without using veclib and let you know. I've fowarded this mail to r-devel, which seems to b

[Rd] RE: Hi

2005-03-18 Thread mailerndr
* * THIS IS AN AUTOMATED RESPONSE * * FROM [EMAIL PROTECTED] * * You have been sent this email because you responded to a Trade Me automated email. We send out a number of emails automatically inc

[Rd] Re: [R] H-F corr.: covariance matrix for interaction effect

2005-03-01 Thread Bela Bauer
Peter Dalgaard wrote: Just in case anyone was wondering, I think I now know what SAS is doing, and yes, it is a bug. I was still wondering. :-) Now, this is quite some interesting news, since everyone here has been relying on SAS H-F corrections, and I don't think they'll be amused to know that

[Rd] Re: [R] H-F corr.: covariance matrix for interaction effect

2005-02-28 Thread Peter Dalgaard
Peter Dalgaard <[EMAIL PROTECTED]> writes: > Where I would have expected > > > (20*5*0.6917-2)/(5*(19-5*.6917)) > [1] 0.8643953 > > Does anyone have a clue as to what is going on here? Is mighty SAS > simply doing the wrong thing? The G-G epsilon depends only on the > eigenvalues of the observed

Re: [Rd] Re: [R] Do environments make copies?

2005-02-26 Thread Prof Brian Ripley
On Sat, 26 Feb 2005, Nawaaz Ahmed wrote: Hi Folks, Thanks for all your replies and input. In particular, thanks Luke, for explaining what is happening under the covers. In retrospect, my example using save and load to demonstrate the problem I was having was a mistake - I was trying to reproduce

Re: [Rd] Re: [R] Do environments make copies?

2005-02-26 Thread Gabor Grothendieck
See ?gctorture Nawaaz Ahmed inktomi.com> writes: : : Hi Folks, : Thanks for all your replies and input. In particular, thanks Luke, for : explaining what is happening under the covers. In retrospect, my example : using save and load to demonstrate the problem I was having was a : mistake

[Rd] Re: [R] Do environments make copies?

2005-02-26 Thread Nawaaz Ahmed
Hi Folks, Thanks for all your replies and input. In particular, thanks Luke, for explaining what is happening under the covers. In retrospect, my example using save and load to demonstrate the problem I was having was a mistake - I was trying to reproduce the problem I was having in a simple e

[Rd] Re: [R][Rdev] any way to generate "bitmap" (tif, jpeg, png etc) files inR CMD BATCH

2005-02-25 Thread Roger Bivand
On Fri, 25 Feb 2005, Oleg Sklyar wrote: > Hi Community, > Use a virtual framebuffer - an example of an earlier question about this on the list is: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/15988.html (the searchable archives have lots of good tips) > here is the problem, Linux problem (

[Rd] Re: [R] H-F corr.: covariance matrix for interaction effect

2005-02-24 Thread Peter Dalgaard
Peter Dalgaard <[EMAIL PROTECTED]> writes: > Bela Bauer <[EMAIL PROTECTED]> writes: > > > Hi, > > > > I'm still not quite there with my H-F (G-G) correction code. I have it > > working for the main effects, but I just can't figure out how to do it > > for the effect interactions. The thing I rea

Re: [Rd] Re: [R-SIG-Mac] Bug running pbinom() in R-GUI?

2005-02-23 Thread IandJMSmith
Given TOMS708 has been incorporated into R and that the original pbeta_raw routine had more problems than just large shape parameters, why wasnât it rewritten as double pbeta_raw(double x, double pin, double qin, int lower_tail) { /* Use TOMS 708 */ double x1 = 1 - x, w, wc; int ierr

Re: [Rd] Re: [R-SIG-Mac] Bug running pbinom() in R-GUI?

2005-02-23 Thread Prof Brian Ripley
This has no context attached, but I believe refers to a message of Feb 10 (that I deleted locally a while ago). R-devel uses a different version of pbeta, which has neither the problems mentioned for the Gnumeric version described in PR#7153 nor the slowness of the previous version. From the N

[Rd] Re: [R-SIG-Mac] Bug running pbinom() in R-GUI?

2005-02-22 Thread Morten Welinder
The real problem is that pbeta can take forever. That's bug #7153 and a fix is within reach. Morten __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Re: calling optif0 in a C function

2005-02-22 Thread Emmanuel Paradis
I have solved (apparently) my problem: instead of optif0, calling optif9 works fine. I use something like: optif9(*np, *np, l, (fcn_p) fcn_expo, (fcn_p) 0, (d2fcn_p) 0, D, typsiz, 1, 1, 1, &msg, -1 /* = ndigit */, 1000, 0 /* = iagflg */, 0, -1.0, 1.e-6, 0.1, 1.e-6, xpls, fpls,

[Rd] Re: [R] minus I and minus L flags

2005-02-21 Thread Dirk Eddelbuettel
On 21 February 2005 at 10:17, Prof Brian Ripley wrote: | [This is getting rather technical, so moved to R-devel.] Yup. | I looked at the examples on CRAN, and failed to find one that allowed | users to specify the paths flexibly. RQuantian mentioned by Dirk does (Nit: RQuantLib, not RQuantia

Re: [Rd] Re: [R] LD_LIBRARY_PATH is harmfull

2005-02-21 Thread Alexander Klimov
On Mon, 21 Feb 2005, Prof Brian Ripley wrote: > >>> libgcc_s.so.1 (GCC_3.3) => (version not found) > >> > >> I don't believe that happens unless `home/lib' is not in the library paths > >> at all. > > > > Notice that I do have libgcc_s in /usr/local/lib, but it is for > > gcc2.95, so ldd sa

Re: [Rd] Re: [R] LD_LIBRARY_PATH is harmfull

2005-02-21 Thread Prof Brian Ripley
On Mon, 21 Feb 2005, Alexander Klimov wrote: Hi. On Mon, 21 Feb 2005, Prof Brian Ripley wrote: Consider the following situation: Solaris 8, /usr/local has gcc 2.95, my home has gcc 3.4.3, my gcc is first on PATH, LD_LIBRARY_PATH is unset (everything is perfect since I always use -R). In fact, progr

[Rd] Re: [R] LD_LIBRARY_PATH is harmfull

2005-02-21 Thread Alexander Klimov
Hi. On Mon, 21 Feb 2005, Prof Brian Ripley wrote: > > Consider the following situation: Solaris 8, /usr/local has gcc 2.95, > > my home has gcc 3.4.3, my gcc is first on PATH, LD_LIBRARY_PATH is > > unset (everything is perfect since I always use -R). In fact, programs > > compiled with my gcc do

[Rd] Re: [R] minus I and minus L flags

2005-02-21 Thread Prof Brian Ripley
[This is getting rather technical, so moved to R-devel.] On Sun, 20 Feb 2005, Charles Geyer wrote: I have been RTFM/doc/www, but I'm still lost. How does one tell R CMD INSTALL and R CMD check (both) that libraries are installed in non-usual places and so -I/APPS/include (or whatever) is necessary

[Rd] Re: [R] LD_LIBRARY_PATH is harmfull

2005-02-21 Thread Prof Brian Ripley
Please use R-devel for comments about R development (moved there). On Mon, 21 Feb 2005, Alexander Klimov wrote: Hi. Consider the following situation: Solaris 8, /usr/local has gcc 2.95, my home has gcc 3.4.3, my gcc is first on PATH, LD_LIBRARY_PATH is unset (everything is perfect since I always us

  1   2   3   4   5   6   7   >