Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread spencerg
Dear Andy, Duncan, et al. Based on comments from Andy and Duncan, I'd like to revise my proposal as follows: 1. Rename the current "RSiteSearch.function" to "findFunction" and the package name from "RSiteSearch.function" to "findFunction", with "findFun" being an alias fo

[Rd] need help with libtool/aclocal error

2009-06-05 Thread Kynn Jones
I'm trying to build an executable for a program I wrote. The compilation steps go well, but the linking step fails with a libtool "version mismatch" error. My linking command has this prefix: /path/to/R/bin/R CMD LINK gcc -g -std=gnu99 ... etc. The error looks like this: libtool: Version misma

[Rd] sort/partial NA handling

2009-06-05 Thread Stavros Macrakis
I am not sure if this is a documentation problem or an implementation problem: The 'partial' feature of sort works fine with all values of na.last for some values of 'partial': > sort(c(3,NA,1,2),na.last=FALSE,partial=1:2) # find minimum values [1] NA 1 2 3 > sort(c(3,NA,1,2),na.last=TRUE,

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Barry Rowlingson
Here's a replacement 'q' function that spits out the path of the workspace image: q = function (save = "default", status = 0, runLast = TRUE) { cat(paste("Workspace image is ",file.path(getwd(),formals(save.image)$file),'\n')) flush.console() .Internal(quit(save, status, runLast)) } Note the tric

Re: [Rd] Bug in the package RODBC (PR#13745)

2009-06-05 Thread marc_schwartz
On Jun 5, 2009, at 9:30 AM, nachiket...@cox.net wrote: > Full_Name: N. Srinivasan > Version: 2.8.1 > OS: Linux > Submission from: (NULL) (68.110.225.2) > > > * Installing *source* package 'RODBC' ... > checking for gcc... gcc -std=gnu99 > checking for C compiler default output file name... a.out >

[Rd] Bug in the package RODBC (PR#13745)

2009-06-05 Thread nachikethas
Full_Name: N. Srinivasan Version: 2.8.1 OS: Linux Submission from: (NULL) (68.110.225.2) * Installing *source* package 'RODBC' ... checking for gcc... gcc -std=gnu99 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cros

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Gabor Grothendieck
On Fri, Jun 5, 2009 at 11:52 AM, Barry Rowlingson wrote: > On Fri, Jun 5, 2009 at 3:01 PM, Gabor > Grothendieck wrote: > > >> >> Save workspace to /home/me/workspace/.RData? [ y(es) / (n(o) / >> c(ancel) / o(ther) ]: > >  Quitting emacs produces this: > > Save file /foo/bar/baz.qux? (y, n, !, ., q,

Re: [Rd] Bug in print.Arima and patch

2009-06-05 Thread Prof Brian Ripley
On Fri, 5 Jun 2009, Gavin Simpson wrote: On Fri, 2009-06-05 at 15:42 +0100, Prof Brian Ripley wrote: Why not use NROW? No reason - had forgotten this existed. I was testing NROW after having seen the R-help message, so will go ahead with that solution. But as I was doing so, something urg

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Barry Rowlingson
On Fri, Jun 5, 2009 at 3:01 PM, Gabor Grothendieck wrote: > > Save workspace to /home/me/workspace/.RData? [ y(es) / (n(o) / > c(ancel) / o(ther) ]: Quitting emacs produces this: Save file /foo/bar/baz.qux? (y, n, !, ., q, C-r, d or C-h) I'm not sure what any other than the first two do. I d

Re: [Rd] Bug in print.Arima and patch

2009-06-05 Thread Gavin Simpson
On Fri, 2009-06-05 at 15:42 +0100, Prof Brian Ripley wrote: > Why not use NROW? No reason - had forgotten this existed. So here is another patch: [ga...@desktop ~]$ svn diff ~/R/devel/src/ Index: /home/gavin/R/devel/src/library/stats/R/arima.R

Re: [Rd] Bug in print.Arima and patch

2009-06-05 Thread Prof Brian Ripley
Why not use NROW? On Fri, 5 Jun 2009, Gavin Simpson wrote: Dear List, A posting to R-Help exposed this problem with the print method for objects of class Arima: set.seed(1) x <- arima.sim(n = 100, list(ar = 0.8897, ma = -0.2279)) mod <- arima(x, order = c(1,0,1)) coefs <- coef(mod) mod2 <- a

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Prof Brian Ripley
Any change here is not so simple to implement as to propose: this is not something in the R engine, but part of the clean-up action in the front end. That means that there are at least 3 versions to handle in the standard front ends (and that for R.app is not in the main source tarball). And

[Rd] Bug in print.Arima and patch

2009-06-05 Thread Gavin Simpson
Dear List, A posting to R-Help exposed this problem with the print method for objects of class Arima: > set.seed(1) > x <- arima.sim(n = 100, list(ar = 0.8897, ma = -0.2279)) > mod <- arima(x, order = c(1,0,1)) > coefs <- coef(mod) > mod2 <- arima(x, order = c(1,0,1), fixed = coefs) > mod2 Call:

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Gabor Grothendieck
On Fri, Jun 5, 2009 at 9:43 AM, Wacek Kusnierczyk wrote: > Mathieu Ribatet wrote: >> I guess that having something like this >> >>> q() >>> Save workspace image (/home/me/workspace/.RData)? [y/n/c/e]: >>> >> >> where "e" means Editing the path should be clear enought, isn't it? >> > > good idea;  m

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Duncan Murdoch
On 6/5/2009 9:46 AM, Barry Rowlingson wrote: On Fri, Jun 5, 2009 at 1:46 PM, Mathieu Ribatet wrote: I guess that having something like this q() Save workspace image (/home/me/workspace/.RData)? [y/n/c/e]: where "e" means Editing the path should be clear enought, isn't it? 'e' might be thou

Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread Duncan Murdoch
On 6/5/2009 9:41 AM, spencerg wrote: Liaw, Andy wrote: From: spencerg Thank you all for your suggestions. My goal with this is to make it as easy as possible for R users to find what they want in contributed packages. A referee for our "R Journal" manuscript complained that "RSit

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Barry Rowlingson
On Fri, Jun 5, 2009 at 1:46 PM, Mathieu Ribatet wrote: > I guess that having something like this >> q() >> Save workspace image (/home/me/workspace/.RData)? [y/n/c/e]: > > where "e" means Editing the path should be clear enought, isn't it? 'e' might be thought to mean 'exit' in English, which mak

Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread spencerg
Liaw, Andy wrote: From: spencerg Thank you all for your suggestions. My goal with this is to make it as easy as possible for R users to find what they want in contributed packages. A referee for our "R Journal" manuscript complained that "RSiteSearch.function" was too much to type

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Ronggui Huang
I think e is better than others. Ronggui 2009/6/5 Wacek Kusnierczyk : > Mathieu Ribatet wrote: >> I guess that having something like this >> >>> q() >>> Save workspace image (/home/me/workspace/.RData)? [y/n/c/e]: >>> >> >> where "e" means Editing the path should be clear enought, isn't it? >> >

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Wacek Kusnierczyk
Mathieu Ribatet wrote: > I guess that having something like this > >> q() >> Save workspace image (/home/me/workspace/.RData)? [y/n/c/e]: >> > > where "e" means Editing the path should be clear enought, isn't it? > good idea; maybe 'o' for 'other path'; or 'a' for 'alternative path';

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Mathieu Ribatet
I guess that having something like this > q() > Save workspace image (/home/me/workspace/.RData)? [y/n/c/e]: where "e" means Editing the path should be clear enought, isn't it? Best, Mathieu Le vendredi 05 juin 2009 à 14:36 +0200, Wacek Kusnierczyk a écrit : > Duncan Murdoch wrote: > > On 05/06/

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Wacek Kusnierczyk
Duncan Murdoch wrote: > On 05/06/2009 7:53 AM, Barry Rowlingson wrote: >> When I quit R, it says: >> >> > q() >> Save workspace image? [y/n/c]: >> >> and since I've probably got 3 R sessions running in however many >> different directories and I might have jumped around with setwd() , I >> forge

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Ronggui Huang
2009/6/5 Duncan Murdoch : > On 05/06/2009 7:53 AM, Barry Rowlingson wrote: >> >> When I quit R, it says: >> >>  > q() >>  Save workspace image? [y/n/c]: >> >>  and since I've probably got 3 R sessions running in however many >> different directories and I might have jumped around with setwd() , I >

[Rd] Show location of workspace image on quit?

2009-06-05 Thread Barry Rowlingson
When I quit R, it says: > q() Save workspace image? [y/n/c]: and since I've probably got 3 R sessions running in however many different directories and I might have jumped around with setwd() , I forget exactly where R wants to save its workspace image. So could q() be changed to say what file

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Duncan Murdoch
On 05/06/2009 7:53 AM, Barry Rowlingson wrote: When I quit R, it says: > q() Save workspace image? [y/n/c]: and since I've probably got 3 R sessions running in however many different directories and I might have jumped around with setwd() , I forget exactly where R wants to save its workspac

Re: [Rd] Show location of workspace image on quit?

2009-06-05 Thread Wacek Kusnierczyk
Barry Rowlingson wrote: > Would something like > > > q() > Save workspace image (/home/me/workspace/.RData)? [y/n/c]: > > be useful to anyone else? Just thought I'd ask before I dive into > internals or wrap the q function for myself. > yes, it would be very useful to me. vQ _

Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread Liaw, Andy
From: spencerg > > Thank you all for your suggestions. My goal with this > is to make > it as easy as possible for R users to find what they want in > contributed > packages. A referee for our "R Journal" manuscript complained that > "RSiteSearch.function" was too much to type, sugges