[Rd] optim() example in relist() help page

2009-01-19 Thread Dimitris Rizopoulos
I think the optim() example in the Details section of relist()'s help page is not totally correct. In particular, in the current form it is not taken into account that vcov should be a symmetric matrix and only the parameters in the lower (or upper) triangular part should be optimized. A possi

[Rd] Floating point excepting when cbind()ing a matrix of grobs (or environments) with a 0-column matrix

2009-01-19 Thread hadley wickham
library(grid) e <- rectGrob() # OR: # e <- environment() a <- matrix(list(e), ncol = 1, nrow = 2) b <- matrix(ncol = 0, nrow = 2) cbind(a, b) cbind(a, b) This reliably crashes R for me. I realise this is a rather esoteric error condition, but it crops up for me when creating matrices of grobs

Re: [Rd] patch for textspecial and defaultfont in xfig

2009-01-19 Thread Sebastian Fischmeister
Thanks for the guidelines. The updated patch also includes an exhaustive test in R for the two new options. Sebastian Index: src/library/grDevices/R/postscript.R === --- src/library/grDevices/R/postscript.R(revision 47637

[Rd] [Win] Hangup RGui with RMySQL (PR#13453)

2009-01-19 Thread apfel . schmied
Full_Name: Apfel Schmied Version: 2.8.1 (2008-12-22) OS: WinXP SP2 Submission from: (NULL) (134.106.122.139) RMySQL Version: 0.7-2 DBI Version: 0.2-4 MySQL Version: 5.1.30 (Enviroment Variable MYSQL_HOME is set) Updated R from 2.60 to 2.8.1. Now Gui.exe hangs up (100% CPU Useage) when requestin

Re: [Rd] DierckxSpline segfault

2009-01-19 Thread Spencer Graves
Thanks for this bug report. I've replicated the problem using your excellent example. Unfortunately, this may not be an easy bug to fix. Might it be feasible for you to use either the 'periodicSpline' function in the 'splines' package or a Fourier basis in the 'fda' package?

Re: [Rd] [Win] Hangup RGui with RMySQL (PR#13453)

2009-01-19 Thread Prof Brian Ripley
Did you build RMySQL yourself? You need to for MySQL 5.1. That has been reported on R-sig-db, and even on R-help, and looks like your mistake. In any case, RMySQL is not part of R, so this was a misuse of R-bugs (please DO read the FAQ). Now someone has to clean up after you On Mon,

[Rd] further notes on model.frame issue

2009-01-19 Thread Terry Therneau
This is a follow-up on my note of Saturday. Let me start with two important clarifications - I think this would be a nice addition, but I've had exactly one use for it in the 15+ years of developing the survival package. - I have a work around for the current case. Prioritize acco

Re: [Rd] Floating point excepting when cbind()ing a matrix of grobs (orenvironments) with a 0-column matrix

2009-01-19 Thread William Dunlap
I think the following patch to src/main/bind.c fixes it up. If the length of an argument to [cr]bind is 0 then it wont't try to add any data from it to the output any more, just as is done with the other modes of data. It was getting the FPE from i%k when k==0. Index: src/main/bind.c

[Rd] sub and gsub treat \\ incorrectly (PR#13454)

2009-01-19 Thread amiransk
Sub and gsub treat \\ replacement pattern incorrectly I expect sub("a","\\", "a", perl=T) to produce [1] "\" instead it generates [1] "" On the other hand, if I run sub("a","", "a", perl=T) it correctly outputs [1] "\\" The same issue applies to gsub. --please do not edit the info

Re: [Rd] sub and gsub treat \\ incorrectly (PR#13454)

2009-01-19 Thread William Dunlap
> -Original Message- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of amira...@uwo.ca > Sent: Monday, January 19, 2009 10:25 AM > To: r-de...@stat.math.ethz.ch > Cc: r-b...@r-project.org > Subject: [Rd] sub and gsub treat \\ incorrectly (PR#13454)

Re: [Rd] further notes on model.frame issue

2009-01-19 Thread Charles C. Berry
On Mon, 19 Jan 2009, Terry Therneau wrote: This is a follow-up on my note of Saturday. Let me start with two important clarifications - I think this would be a nice addition, but I've had exactly one use for it in the 15+ years of developing the survival package. - I have a work around fo

[Rd] Future support for cross-building for Windows

2009-01-19 Thread Prof Brian Ripley
Cross-building is one of those things that complicates the Windows R build process considerably and probably benefits a handful of people. It has been pointed out that now we have build services such as Uwe's win-builder and RForge, there are easy ways to get a (checked) Windows binary of a fi