Re: [Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-12-03 Thread Jean Couteau
FWIW the restriction is only on the console input - if you send it directly, there is no limit (I have never heard of nuiton-j2r but if you use rJava to interface from Java to R there is no limit - the string you parse+evaluate can be of any length). Hi Simon, nuiton-j2r is in fact an

[Rd] ./configure warning (PR#14104)

2009-12-03 Thread thoralf . dassler
Full_Name: Version: devel_2009-12-01 OS: Linux Submission from: (NULL) (146.87.149.164) Can ./configure be made/told to look in /usr/share/texmf/bin instead of /usr/bin or /usr/local/bin for pdftex and pdflatex? This saves me from creating symlinks, which, once there, create issues with

[Rd] dchisq tail accuracy (PR#14105)

2009-12-03 Thread Jerry . Lewis
Full_Name: Jerry W. Lewis Version: 2.10.0 OS: Windows XP Professional Submission from: (NULL) (198.180.131.16) dchisq is inaccurate in the extreme tails. For instance, dchisq(1510,2,952) returns 4.871004e-18 which is almost 15 times smaller than the correct value of 7.053889e-17. A better

Re: [Rd] dchisq tail accuracy (PR#14105)

2009-12-03 Thread jerry . lewis
The undefined variables in the original post are d2 - df/2-1 sxn - sqrt(x*ncp) Jerry [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] S4 and head() problems

2009-12-03 Thread Robin Hankin
Hi I am having difficulty defining an S4 method for head() and tail(). I can't quite provide minimal self-contained code because the problem appears to require the whole corpus of my package; and there also appears to be a difference between sourcing the lines directly, and having them

Re: [Rd] ./configure warning (PR#14104)

2009-12-03 Thread Prof Brian Ripley
It's odd to have a architecture-specific directory (bin) under a no-architecture one (/usr/share). But why have you filed a question as a bug report? See the section BUGS in the FAQ. Simply, configure looks along your path for executables, so set the path suitably when running configure:

Re: [Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-12-03 Thread Romain Francois
Hi, You really should use the REngine API, which lets you control jri and Rserve using the same api. See the org.rosuda.REngine package in http://www.rforge.net/org/docs/ Either wayn, I have no problem evaluating the problematic string with both apis. Romain On 12/02/2009 03:26 PM, Jean

Re: [Rd] S4 and head() problems

2009-12-03 Thread Martin Maechler
Hi Robin, Robin == Robin Hankin rk...@cam.ac.uk on Thu, 03 Dec 2009 11:04:03 + writes: Hi I am having difficulty defining an S4 method for head() and tail(). I can't quite provide minimal self-contained code because the problem appears to require the whole corpus

Re: [Rd] boxplot: auto sizing for ylim variable

2009-12-03 Thread violet lock
Sorry, I though I had reposted the question- I was trying to create a barplot- I just solved it by looping and setting the program to graph as subset of the data. The size is a parameter so the user can reset it if needed bargraph - function(table) { barplot(table, main=Title, xlim=c(0,120),

[Rd] documentation of intersect() on string vector and num vector and on duplicated elements (PR#14107)

2009-12-03 Thread pengyu . ut
Full_Name: Version: 2.10.0 OS: Submission from: (NULL) (128.249.106.234) The document on intersect()'s argument are spread into Arguments and Details sections (see ?intersect). The following description is on the arguments (but from Details section). So I think that it makes more sense to

[Rd] question about differences in behavior with NA subscripts in matrix vs. data.frame

2009-12-03 Thread Mark Kimpel
I ran into a problem today when using a conditional for sub-setting a data.frame and tracked it down to a difference in behavior between the treatment of NA when sub-setting matrices and data.frames. A self-contained example is below followed by sessionInfo(). I'm not questioning the documentation

Re: [Rd] group generics

2009-12-03 Thread Ross Boylan
Thanks for your help. I had two concerns about using as: that it would impose some overhead, and that it would require me to code an explicit conversion function. I see now that the latter is not true; I don't know if the overhead makes much difference. On Thu, 2009-12-03 at 13:00 -0800, Martin

Re: [Rd] group generics

2009-12-03 Thread John Chambers
I missed the earlier round of this discussion and only am commenting now to say that this doesn't seem weird at all, if I understand what you're trying to do. Martin's basic suggestion, v - callGeneric(e1, as(e2, A)) seems the simplest solution. You just want to make another call to the

Re: [Rd] group generics

2009-12-03 Thread Ross Boylan
On Thu, 2009-12-03 at 14:25 -0800, John Chambers wrote: I missed the earlier round of this discussion and only am commenting now to say that this doesn't seem weird at all, if I understand what you're trying to do. Martin's basic suggestion, v - callGeneric(e1, as(e2, A)) seems the

[Rd] Error in namespaceExport(ns, exports) :

2009-12-03 Thread David Scherrer
Dear all, I get the error Error in namespaceExport(ns, exports) : undefined exports function1 , function2 when compiling or even when I roxygen my package. The two function I once had in my package but I deleted them including their .Rd files. I also can't find them in any other function or

[Rd] Error read.table()'s help page and put the distinction between (PR#14109)

2009-12-03 Thread pengyu . ut
The word 'be' is missing after 'will' in the following sentence from ?read.table. Note that in either case the columns will logical unless =91colClasses=92 was supplied. Another suggestion: I think that it is make more sense to put at the begining the description of the difference between the

Re: [Rd] Tabs in R source code

2009-12-03 Thread Peng Yu
On Sun, Nov 29, 2009 at 11:18 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 29/11/2009 11:50 AM, Peng Yu wrote: On Sun, Nov 29, 2009 at 10:40 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 29/11/2009 10:58 AM, Peng Yu wrote: Some lines are indented by tabs and some lines are

Re: [Rd] Tabs in R source code

2009-12-03 Thread Sharpie
pengyu.ut wrote: http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html Here is the R style, which does not recommend using tabs. Although it might take some time to forbidden the use of tabs, it will eventually be a good practice that benefits everyone in the future.