[Rd] Bug in R 2.7 for over long lines (crasher+proposed fix!) (PR#11281)

2008-04-25 Thread bugreports
OK, I am just sending it here too as it looks like r-devel@r-project.org is not the right place: =EF=BB=BFOn Fri, 2008-04-25 at 08:48 +0200, Soeren Sonnenburg wrote: > While trying to fix swig & R2.7 I actually discovered that there is a > bug in R 2.7 causing a crash (so R & swig might actually w

[Rd] remarks on function pnbeta (PR#11277)

2008-04-25 Thread ali . baharev
Dear Developers, The pnbeta function has been reviewed recently in the article of A. Baharev, S. Kem=E9ny, On the computation of the noncentral F and noncentral beta distribution, Statistics and Computing, 2008, in press. Preprint of the paper is available here: http://reliablecomputing.eu/public

Re: [Rd] returning vectors of unknown size from C (with .C)

2008-04-25 Thread Duncan Murdoch
Ramon Diaz-Uriarte wrote: > Dear All, > > In a package, I am using ".C" to call some C functions. In one case, > the number of elements of the return vectors are not known in R before > the C call. (Two of the vectors are integers, the third is vector of > character strings). > > Passing from R a v

[Rd] returning vectors of unknown size from C (with .C)

2008-04-25 Thread Ramon Diaz-Uriarte
Dear All, In a package, I am using ".C" to call some C functions. In one case, the number of elements of the return vectors are not known in R before the C call. (Two of the vectors are integers, the third is vector of character strings). Passing from R a vector of the maximum possible size would

Re: [Rd] r won't start: "r: symbol lookup error: r: undefined symbol: R_Visible" (PR#11265)

2008-04-25 Thread Vincent Goulet
Le ven. 25 avr. à 07:09, Dirk Eddelbuettel a écrit : > > On 24 April 2008 at 20:20, [EMAIL PROTECTED] wrote: > | Full_Name: Jakob Stoeger > | Version: 2.7.0 > | OS: ubuntu 7.10 > | Submission from: (NULL) (137.248.74.38) > | > | > | Hi! > | > | I hope, it is justified to write this email... > | I'

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Prof Brian Ripley
On Fri, 25 Apr 2008, Deepayan Sarkar wrote: > For what it's worth, I use ?foo mostly to look up usage of functions > that I know I want to use, and find it perfect for that (one benefit > over help() is that completion works for ?). The only thing I miss is > the ability to do the equivalent of he

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread John Fox
Dear all, Why not leave ? more-or-less as it is (at least for ?foo) and add arguments to help() for other kinds of searches? Perhaps the kind of search that help() does by default could be set as an option. Regards, John -- John Fox, Professor Department of Sociology

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Deepayan Sarkar
For what it's worth, I use ?foo mostly to look up usage of functions that I know I want to use, and find it perfect for that (one benefit over help() is that completion works for ?). The only thing I miss is the ability to do the equivalent of help("foo", package = "bar"); ?bar::foo gives the help

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Marc Schwartz
hadley wickham wrote: >> It seems logical to me that such a resource be embedded up front in "Intro" >> with it also being included within the existing help system and referenced >> in the start up banner message. > > That would help if anyone actually read the startup banner. The next > time yo

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Robert Gentleman
Duncan Murdoch wrote: > On 4/25/2008 10:16 AM, Robert Gentleman wrote: >> >> Duncan Murdoch wrote: >>> Currently ?foo does help("foo"), which looks for a man page with >>> alias foo. If foo happens to be a function call, it will do a bit >>> more, so >>> >>> ?mean(something) >>> >>> will find

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread hadley wickham
> It seems logical to me that such a resource be embedded up front in "Intro" > with it also being included within the existing help system and referenced > in the start up banner message. That would help if anyone actually read the startup banner. The next time you're in front of an audience of

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Marc Schwartz
Duncan Murdoch wrote: > Marc Schwartz wrote: >> Duncan Murdoch wrote: >> >>> Currently ?foo does help("foo"), which looks for a man page with >>> alias foo. If foo happens to be a function call, it will do a bit >>> more, so >>> >>> ?mean(something) >>> >>> will find the mean method for someth

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Duncan Murdoch
On 4/25/2008 10:41 AM, Simon Urbanek wrote: > On Apr 25, 2008, at 8:46 AM, Peter Dalgaard wrote: > >> Duncan Murdoch wrote: >>> I haven't done it, but I suspect we could introduce special behaviour >>> for ??foo very easily. We could even have a whole hierarchy: >>> >>> ?foo, ??foo, ???foo, f

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread hadley wickham
> Consistent with this idea would be something like the "I feel lucky" search > on Google, i.e. ?foo would go immediately to the best match, while ??foo > would present a list of possible matches. This is not consistent with > current behaviour, where ?foo will present a list if it matches two or

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Duncan Murdoch
On 4/25/2008 10:18 AM, hadley wickham wrote: > On Fri, Apr 25, 2008 at 7:46 AM, Peter Dalgaard > <[EMAIL PROTECTED]> wrote: >> Duncan Murdoch wrote: >> > I haven't done it, but I suspect we could introduce special behaviour >> > for ??foo very easily. We could even have a whole hierarchy: >> >

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Duncan Murdoch
On 4/25/2008 10:16 AM, Robert Gentleman wrote: > > Duncan Murdoch wrote: >> Currently ?foo does help("foo"), which looks for a man page with alias >> foo. If foo happens to be a function call, it will do a bit more, so >> >> ?mean(something) >> >> will find the mean method for something if mea

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Simon Urbanek
On Apr 25, 2008, at 8:46 AM, Peter Dalgaard wrote: > Duncan Murdoch wrote: >> I haven't done it, but I suspect we could introduce special behaviour >> for ??foo very easily. We could even have a whole hierarchy: >> >> ?foo, ??foo, ???foo, foo, ... >> >> > Heh, that's rather nice, actually. I

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread hadley wickham
> I would rather see that be one of the dyadic forms, say > >site?foo > > or >all?foo I'd be interested to know how many R users are aware of the dyadic form - I suspect it's very very few. Hadley -- http://had.co.nz/ __ R-devel@r-projec

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread hadley wickham
On Fri, Apr 25, 2008 at 7:46 AM, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > Duncan Murdoch wrote: > > I haven't done it, but I suspect we could introduce special behaviour > > for ??foo very easily. We could even have a whole hierarchy: > > > > ?foo, ??foo, ???foo, foo, ... > > > > > H

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread hadley wickham
> > But that's just a problem with the current implementation. Better > > indexing could make full text search of all documentation practical > > instantaneous. This is one argument for a centralised documentation > > web site - such indices are much easier to set up in a modern web > > developme

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Robert Gentleman
Duncan Murdoch wrote: > Currently ?foo does help("foo"), which looks for a man page with alias > foo. If foo happens to be a function call, it will do a bit more, so > > ?mean(something) > > will find the mean method for something if mean happens to be an S4 > generic. There are also the ty

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Peter Dalgaard
Duncan Murdoch wrote: > I haven't done it, but I suspect we could introduce special behaviour > for ??foo very easily. We could even have a whole hierarchy: > > ?foo, ??foo, ???foo, foo, ... > > Heh, that's rather nice, actually. In words, that could read ?foo: tell me about foo! ??foo: w

Re: [Rd] r won't start: "r: symbol lookup error: r: undefined symbol: (PR#11274)

2008-04-25 Thread edd
On 24 April 2008 at 20:20, [EMAIL PROTECTED] wrote: | Full_Name: Jakob Stoeger | Version: 2.7.0 | OS: ubuntu 7.10 | Submission from: (NULL) (137.248.74.38) | | | Hi! | | I hope, it is justified to write this email... | I'm relatively new to linux, and haven't worked with r, yet, so please pardo

Re: [Rd] r won't start: "r: symbol lookup error: r: undefined symbol: R_Visible" (PR#11265)

2008-04-25 Thread Dirk Eddelbuettel
On 24 April 2008 at 20:20, [EMAIL PROTECTED] wrote: | Full_Name: Jakob Stoeger | Version: 2.7.0 | OS: ubuntu 7.10 | Submission from: (NULL) (137.248.74.38) | | | Hi! | | I hope, it is justified to write this email... | I'm relatively new to linux, and haven't worked with r, yet, so please pardo

Re: [Rd] RFC: What should ?foo do?

2008-04-25 Thread Duncan Murdoch
Marc Schwartz wrote: > Duncan Murdoch wrote: > >> Currently ?foo does help("foo"), which looks for a man page with alias >> foo. If foo happens to be a function call, it will do a bit more, so >> >> ?mean(something) >> >> will find the mean method for something if mean happens to be an S4 >>

Re: [Rd] r won't start: "r: symbol lookup error: r: undefined symbol: (PR#11273)

2008-04-25 Thread mathieu . ribatet
> I tried installing r on my computer, and didn't manage to get the program > running. > After having installed littler, typing r into the bash results in following > message: > > r: symbol lookup error: r: undefined symbol: R_Visible > Did you invoke "r" or "R" because it is totally different

Re: [Rd] r won't start: "r: symbol lookup error: r: undefined symbol: R_Visible" (PR#11265)

2008-04-25 Thread Mathieu Ribatet
> I tried installing r on my computer, and didn't manage to get the program > running. > After having installed littler, typing r into the bash results in following > message: > > r: symbol lookup error: r: undefined symbol: R_Visible > Did you invoke "r" or "R" because it is totally different

[Rd] r for windows gui front-end error (PR#11257)

2008-04-25 Thread job75
Full_Name: Ho Kim Version: 2.7.0 OS: Vista Submission from: (NULL) (137.68.61.23) I've just installed R 2.7.0 in my computer whose operating system is Windows Vista. When I first started the R program I encountered an error message about "R for Windows GUI frond-end". I've never seen error messag

[Rd] CircStats Bug? (PR#11266)

2008-04-25 Thread rmark
I have a vector of dimension 67, but CircStat circ.summary and circ.disp seems to conclude that the dimension is 1. I am new to R so maybe I'm just missing something. > dim(data) [1] 67 1 > circ.mean(data) [1] 0.2200071 > circ.summary(data) n mean.dir rho 1 1 0.2200071 43.12534 > ci

[Rd] r won't start: "r: symbol lookup error: r: undefined symbol: R_Visible" (PR#11265)

2008-04-25 Thread jakobstoeger
Full_Name: Jakob Stoeger Version: 2.7.0 OS: ubuntu 7.10 Submission from: (NULL) (137.248.74.38) Hi! I hope, it is justified to write this email... I'm relatively new to linux, and haven't worked with r, yet, so please pardon any things I do not know... I tried installing r on my computer, and d

Re: [Rd] Bug in R 2.7 for over long lines

2008-04-25 Thread Soeren Sonnenburg
On Fri, 2008-04-25 at 08:48 +0200, Soeren Sonnenburg wrote: > While trying to fix swig & R2.7 I actually discovered that there is a > bug in R 2.7 causing a crash (so R & swig might actually work): > > the bug is in ./src/main/gram.c line 3038: > > } else { /* over-long line */ > fix