Re: [Rd] Windows vignettes, shQuote, texi2dvi

2004-12-30 Thread Gabor Grothendieck
That's interesting but its not in my tree. I downloaded it off the net (all 500MB+ !). Liaw, Andy merck.com> writes: : : I don't know the issue, but a search for texi2dvi under my TeXLive tree : found a shell script by that name in the directory : texmf\doc\graphics\texdraw. Can that be made

[Rd] R-intro

2004-12-30 Thread Gorjanc Gregor
Hello! I was reading R-intro and I have some suggestions: R-intro.html#A-sample-session rm(fm, fm1, lrf, x, dummy) suggestion rm(fm, fm1, lrf, x, y, w, dummy) The next section will look at data from the classical experiment of Michaelson and Morley to measure the speed of light. file.show("mo

Re: [Rd] optim/vmmin and R_alloc

2004-12-30 Thread Thomas Lumley
On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: On Thu, Dec 30, 2004 at 08:01:41AM -0800, Thomas Lumley wrote: On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: However, and that is my question/suggestion: Why not use Calloc+Free instead of R_alloc in vmmin (and maybe in other places)

RE: [Rd] Windows vignettes, shQuote, texi2dvi

2004-12-30 Thread Liaw, Andy
I don't know the issue, but a search for texi2dvi under my TeXLive tree found a shell script by that name in the directory texmf\doc\graphics\texdraw. Can that be made to work, in conjunction with the shell in the Rtool bundle? Just curious. (This is fpTeX installed from the TeXLive 2004 CD.) A

Re: [Rd] optim/vmmin and R_alloc

2004-12-30 Thread Göran Broström
On Thu, Dec 30, 2004 at 08:01:41AM -0800, Thomas Lumley wrote: > On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: > > > >However, and that is my question/suggestion: Why not use Calloc+Free > >instead of R_alloc in vmmin (and maybe in other places)? I made the > >changes in 'optim.c' in the

Re: [Rd] optim/vmmin and R_alloc

2004-12-30 Thread Göran Broström
On Thu, Dec 30, 2004 at 04:27:59PM +, Prof Brian Ripley wrote: > On Thu, 30 Dec 2004, Thomas Lumley wrote: > > >On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: > >> > >>However, and that is my question/suggestion: Why not use Calloc+Free > >>instead of R_alloc in vmmin (and maybe in ot

Re: [Rd] optim/vmmin and R_alloc

2004-12-30 Thread Prof Brian Ripley
On Thu, 30 Dec 2004, Thomas Lumley wrote: On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: However, and that is my question/suggestion: Why not use Calloc+Free instead of R_alloc in vmmin (and maybe in other places)? I made the changes in 'optim.c' in the functions 'vmmin' and 'Lmatrix'. The

Re: [Rd] optim/vmmin and R_alloc

2004-12-30 Thread Göran Broström
On Thu, Dec 30, 2004 at 08:01:41AM -0800, Thomas Lumley wrote: > On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: > > > >However, and that is my question/suggestion: Why not use Calloc+Free > >instead of R_alloc in vmmin (and maybe in other places)? I made the > >changes in 'optim.c' in the

Re: [Rd] optim/vmmin and R_alloc

2004-12-30 Thread Thomas Lumley
On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: However, and that is my question/suggestion: Why not use Calloc+Free instead of R_alloc in vmmin (and maybe in other places)? I made the changes in 'optim.c' in the functions 'vmmin' and 'Lmatrix'. Then I rebuilt and reinstalled R-2.0.1. The r

[Rd] optim/vmmin and R_alloc

2004-12-30 Thread Göran Broström
I am calling 'vmmin' several times from a C function (which is called via .C). It works very well, except for memory consumption. The cause is that vmmin allocates memory via R_alloc, and this memory is not freed as vmmin exits. Instead all the allocated memory is freed on return of the .C call.

Re: [Rd] is.vector(...) <-> is(..., "vector")

2004-12-30 Thread Thomas Lumley
On Thu, 30 Dec 2004 [EMAIL PROTECTED] wrote: Hello, Is it intended that is.vector(...) and is(..., "vector") do not always give identical results? Yes. They both work as documented, as you note below. People have often pointed out that is.vector is a slightly misleading name, and it might have be

Re: [Rd] Windows vignettes, shQuote, texi2dvi

2004-12-30 Thread Gabor Grothendieck
From: Uwe Ligges <[EMAIL PROTECTED]> > Gabor Grothendieck wrote: > > > I noticed a shQuote fix for Windows in the svn logs. > > Just wanted to point out that this will favorably > > affect texi2dvi on Windows which previously used > > UNIX quoting and so generated an incorrect Windows > > comm

Re: [Rd] is.vector(...) <-> is(..., "vector")

2004-12-30 Thread Prof Brian Ripley
On Thu, 30 Dec 2004 [EMAIL PROTECTED] wrote: Is it intended that is.vector(...) and is(..., "vector") do not always give identical results? Yes. What makes you think they are anything to so with each other? The S4 class "vector" is quite distinct from the usage in base R. is.vector() works as docu

[Rd] is.vector(...) <-> is(..., "vector")

2004-12-30 Thread Matthias . Kohl
Hello, Is it intended that is.vector(...) and is(..., "vector") do not always give identical results? is.vector() works as documented ('is.vector' returns 'FALSE' if 'x' has any attributes except names.) Thus, A <- array(1:2, 1:2) M <- diag(2) is.vector(M) # FALSE, as documented # and is.vector