Re: [Rd] Sweave processes \Sexpr in commented LaTeX source (2.3.1patched and 2.4.0)

2006-09-19 Thread Friedrich Leisch
> On Tue, 19 Sep 2006 19:14:39 -0500, > Marc Schwartz (MS) wrote: > Hi all, > On FC5, using: > Version 2.3.1 Patched (2006-08-06 r38829) > and today's > R version 2.4.0 alpha (2006-09-19 r39397) > with the following .Rnw file: > \documentclass[10pt]{article} > \be

Re: [Rd] wishlist --- menu entry [Rgui] misc --- stop current computation

2006-09-19 Thread Prof Brian Ripley
On Tue, 19 Sep 2006, Henrik Bengtsson wrote: > On 9/19/06, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: >> On Tue, 19 Sep 2006, Kjetil Halvorsen wrote: >> >> > This is from R-2.4.0alpha on windows XP, downloaded from CRAN yesterday. >> > >> > I did >> > update.packages(destdir= ..., ask=FALSE,che

Re: [Rd] An update method for lists?

2006-09-19 Thread Mark.Bravington
> > On 9/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > Perhaps it should have another name, be made generic and > extended to > > functions in which case it would work on the formal arguments. e.g. > > > >read.table.comma <- modify(read.table, list(sep = ",")) > > > > would retur

[Rd] Sweave processes \Sexpr in commented LaTeX source (2.3.1patched and 2.4.0)

2006-09-19 Thread Marc Schwartz
Hi all, On FC5, using: Version 2.3.1 Patched (2006-08-06 r38829) and today's R version 2.4.0 alpha (2006-09-19 r39397) with the following .Rnw file: \documentclass[10pt]{article} \begin{document} This line should print '2': \Sexpr{1 + 1} %% This line should NOT print '2': \Sexpr{1 +

[Rd] mgcv in R-2.4.0.alpha

2006-09-19 Thread Kjetil Halvorsen
Hola! I am sending this to the list since emails from me to Simon Wood has bounced earlier. I get: > library(tsDyn) Loading required package: mgcv Erro en `parent.env<-`(`*tmp*`, value = NULL) : use of NULL environment is defunct Error: package 'mgcv' could not be loaded > library(mgcv)

Re: [Rd] An update method for lists?

2006-09-19 Thread Deepayan Sarkar
On 9/19/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Perhaps it should have another name, be made generic and extended > to functions in which case it would work on the formal arguments. e.g. > >read.table.comma <- modify(read.table, list(sep = ",")) > > would return a function that is

Re: [Rd] wishlist --- menu entry [Rgui] misc --- stop current computation

2006-09-19 Thread Henrik Bengtsson
On 9/19/06, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Tue, 19 Sep 2006, Kjetil Halvorsen wrote: > > > This is from R-2.4.0alpha on windows XP, downloaded from CRAN yesterday. > > > > I did > > update.packages(destdir= ..., ask=FALSE,checkBuilt=TRUE) > > > > which took quite a long time (as.

Re: [Rd] An update method for lists?

2006-09-19 Thread Gabor Grothendieck
Perhaps it should have another name, be made generic and extended to functions in which case it would work on the formal arguments. e.g. read.table.comma <- modify(read.table, list(sep = ",")) would return a function that is the same as read.table but has "," as the default for sep. Python h

Re: [Rd] wishlist --- menu entry [Rgui] misc --- stop current computation

2006-09-19 Thread Kjetil Halvorsen
Thanks. I am quite sure I don't want pending on exit actions to be done! I will try to remember about the esc trick. Kjetil halvorsen On 9/19/06, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > On Tue, 19 Sep 2006, Kjetil Halvorsen wrote: > > > This is from R-2.4.0alpha on windows XP, downloade

Re: [Rd] Help for methods

2006-09-19 Thread John Chambers
It's not likely that S3 methods will ever go away, at least in the sense that all the code using them would be rewritten. What we can work towards is to make more of the automated tools work for S3 methods as well as S4. This will usually involve package owners generating some information, th

Re: [Rd] Rgui.exe plot device "Save as" crash (PR#9237)

2006-09-19 Thread Duncan Murdoch
On 9/19/2006 2:15 PM, Michael Toews wrote: > I was guessing that this bug would be difficult to trace, I just wanted > to document its presence. It is not critical, and can be easily be > avoided by: > - Saving in Jpeg format; or > - Not saving to the Desktop (unless navigated from C:\Documents a

Re: [Rd] Rgui.exe plot device "Save as" crash (PR#9237)

2006-09-19 Thread mwtoews
I was guessing that this bug would be difficult to trace, I just wanted to document its presence. It is not critical, and can be easily be avoided by: - Saving in Jpeg format; or - Not saving to the Desktop (unless navigated from C:\Documents and Settings\etc.) I'm not convinced that this bug i

Re: [Rd] wishlist --- menu entry [Rgui] misc --- stop current computation

2006-09-19 Thread Prof Brian Ripley
On Tue, 19 Sep 2006, Kjetil Halvorsen wrote: > This is from R-2.4.0alpha on windows XP, downloaded from CRAN yesterday. > > I did > update.packages(destdir= ..., ask=FALSE,checkBuilt=TRUE) > > which took quite a long time (as.expected). When the internet cafe > had to close, I had to stop the down

[Rd] wishlist --- menu entry [Rgui] misc --- stop current computation

2006-09-19 Thread Kjetil Halvorsen
This is from R-2.4.0alpha on windows XP, downloaded from CRAN yesterday. I did update.packages(destdir= ..., ask=FALSE,checkBuilt=TRUE) which took quite a long time (as.expected). When the internet cafe had to close, I had to stop the downloading, but the menu item misc --- stop current computati

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-19 Thread Prof Brian Ripley
On Tue, 19 Sep 2006, Prof Brian Ripley wrote: > On Tue, 19 Sep 2006, Peter Dalgaard wrote: > >> Prof Brian Ripley <[EMAIL PROTECTED]> writes: >> Thanks Prof. Ripley and Ei-Ji. I should have mentioned that all the versions I reported for were self-compiled, and I did so with the same

Re: [Rd] Help for methods

2006-09-19 Thread Duncan Murdoch
On 9/19/2006 9:16 AM, hadley wickham wrote: >> In the alpha of 2.4.0, both suggestions above work, as do ?summary and >> ?summary(data.frame()). ?summary(lm()) gives the same man page, rather >> than the summary.lm page (but the page does have a link to that page). > > That's great. > > The fact

Re: [Rd] Help for methods

2006-09-19 Thread hadley wickham
> I do not follow this. When I type ?summary.data.frame I get a > summary help page where I can also find info about S3 method for class > 'data.frame'. If I am not wrong it is > > \alias{summary.data.frame} > > that takes care of this. Oops, summary.data.frame was a bad example, except perhaps to

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-19 Thread Gavin Simpson
On Tue, 2006-09-19 at 14:23 +0200, Peter Dalgaard wrote: > Prof Brian Ripley <[EMAIL PROTECTED]> writes: > > > > Thanks Prof. Ripley and Ei-Ji. I should have mentioned that all the > > > versions I reported for were self-compiled, and I did so with the same > > > set of flags as the FC5 rpm. Will

Re: [Rd] Help for methods

2006-09-19 Thread hadley wickham
> > But you also have to be able to identify if it is a S3 function or an > > S4 method (or an ordinary function). > > Why not just type ?summary, which as I said, does tell you up front? If R can save the novice user a couple of steps in their search for help, why not do it? Getting documentatio

Re: [Rd] Help for methods

2006-09-19 Thread Prof Brian Ripley
On Tue, 19 Sep 2006, hadley wickham wrote: >> > Well, I know that, and you know that, but how is anyone supposed to >> > figure it out? It means that you need to have a working knowledge of >> > the S3 and S4 class systems before you can use the help to reliably >> > get the documentation you nee

Re: [Rd] Help for methods

2006-09-19 Thread hadley wickham
> In the alpha of 2.4.0, both suggestions above work, as do ?summary and > ?summary(data.frame()). ?summary(lm()) gives the same man page, rather > than the summary.lm page (but the page does have a link to that page). That's great. The fact that summary includes a link to summary.lm is relevant

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-19 Thread Prof Brian Ripley
On Tue, 19 Sep 2006, Peter Dalgaard wrote: > Prof Brian Ripley <[EMAIL PROTECTED]> writes: > >>> Thanks Prof. Ripley and Ei-Ji. I should have mentioned that all the >>> versions I reported for were self-compiled, and I did so with the same >>> set of flags as the FC5 rpm. Will add that to the list

Re: [Rd] Help for methods

2006-09-19 Thread Gabor Grothendieck
On my system all three of the ?summary commands listed in your post bring up help (if you add the missing parenthesis to the middle one). I am using "Version 2.3.1 Patched (2006-06-04 r38279)" on Windows XP. On 9/18/06, hadley wickham <[EMAIL PROTECTED]> wrote: > Help for help says: > > The 'topi

Re: [Rd] Help for methods

2006-09-19 Thread hadley wickham
> > Well, I know that, and you know that, but how is anyone supposed to > > figure it out? It means that you need to have a working knowledge of > > the S3 and S4 class systems before you can use the help to reliably > > get the documentation you need. > > For S3 you do to understand that there ar

Re: [Rd] Help for methods

2006-09-19 Thread Gregor Gorjanc
Hin-Tak Leung cimr.cam.ac.uk> writes: > > You are supposed to do: > > ?summary.lm > ?summary.data.frame > > for S3 methods. The former works, the latter doesn't - which is > probably considered a bug, but then the usage of some of the I do not follow this. When I type ?summary.data.frame I ge

Re: [Rd] Help for methods

2006-09-19 Thread Duncan Murdoch
On 9/19/2006 8:52 AM, hadley wickham wrote: >> You are supposed to do: >> >> ?summary.lm >> ?summary.data.frame >> >> for S3 methods. The former works, the latter doesn't - which is >> probably considered a bug, but then the usage of some of the >> generics are probably considered obvious and funda

Re: [Rd] Help for methods

2006-09-19 Thread Prof Brian Ripley
On Tue, 19 Sep 2006, hadley wickham wrote: >> You are supposed to do: >> >> ?summary.lm >> ?summary.data.frame >> >> for S3 methods. The former works, the latter doesn't - which is ?summary.data.frame does work on my systems. >> probably considered a bug, but then the usage of some of the >> gen

Re: [Rd] Help for methods

2006-09-19 Thread hadley wickham
> You are supposed to do: > > ?summary.lm > ?summary.data.frame > > for S3 methods. The former works, the latter doesn't - which is > probably considered a bug, but then the usage of some of the > generics are probably considered obvious and fundamental enough > that summary.data.frame doesn't real

Re: [Rd] Help for methods

2006-09-19 Thread Hin-Tak Leung
You are supposed to do: ?summary.lm ?summary.data.frame for S3 methods. The former works, the latter doesn't - which is probably considered a bug, but then the usage of some of the generics are probably considered obvious and fundamental enough that summary.data.frame doesn't really behave in any

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-19 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > > Thanks Prof. Ripley and Ei-Ji. I should have mentioned that all the > > versions I reported for were self-compiled, and I did so with the same > > set of flags as the FC5 rpm. Will add that to the list in my head of > > things to report. > > (I th

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-19 Thread Prof Brian Ripley
On Tue, 19 Sep 2006, Gavin Simpson wrote: n On Tue, 2006-09-19 at 08:26 +0100, Prof Brian Ripley wrote: I didn't have access to my FC5 boxes yesterday (electrical testing). This does need the FC5-specific compilation options set (-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ss

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-19 Thread Gavin Simpson
On Tue, 2006-09-19 at 08:26 +0100, Prof Brian Ripley wrote: > I didn't have access to my FC5 boxes yesterday (electrical testing). > > This does need the FC5-specific compilation options set > (-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4), so it is not surpri

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-19 Thread Prof Brian Ripley
I didn't have access to my FC5 boxes yesterday (electrical testing). This does need the FC5-specific compilation options set (-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4), so it is not surprising it is not reproducible elsewhere (including under valgrind, BTW