Re: [Rd] plotmath indices: suggested addition to help file

2011-01-21 Thread Martin Maechler
Thank you, Claudia, CB == Claudia Beleites cbelei...@units.it on Thu, 20 Jan 2011 14:05:41 +0100 writes: CB Dear all, I just stumbled over the fact that subsetting CB by square bracket will only output the first given CB index. I guess the rest is thrown away by the CADDR in

Re: [Rd] setGeneric for residuals, etc

2011-01-21 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: r-devel-boun...@r-project.org [mailto:r-devel-bounces@r- project.org] Im Auftrag von Johann Hibschman Gesendet: Donnerstag, 20. Januar 2011 16:25 An: r-de...@stat.math.ethz.ch Betreff: [Rd] setGeneric for residuals, etc I'm experimenting with a few

[Rd] Calling C++ from R

2011-01-21 Thread mtck1982
Hi All, I am new to this area and use Rcpp to call C++ from R and try to build the package under Windows 7. I use Rtools and R 2.10.1 32bit. Everything works fine with me, except using R functions like rnorm or runif in the C++ code. When I use R CMD check the package, it always return error

[Rd] match function causing bad performance when using table function on factors with multibyte characters on Windows

2011-01-21 Thread Karl Ove Hufthammer
[I originally posted this on the R-help mailing list, and it was suggested that R-devel would be a better place to dicuss it.] Running ‘table’ on a factor with levels containing non-ASCII characters seems to result in extremely bad performance on Windows. Here’s a simple example with benchmark

[Rd] table on numeric vector with exclude argument containing value missing from vector causes warning + NaN levels incorrectly removed from factors

2011-01-21 Thread Karl Ove Hufthammer
I *think* the following may be considered a bug or two, but would appreciate any comments before (not) filing an official bug report. Possible bug 1: ‘table’ on numeric vector with ‘exclude’ argument containing value missing from vector causes warning Possible bug 2: ‘table’ incorrectly tries

Re: [Rd] Calling C++ from R

2011-01-21 Thread Douglas Bates
It is more effective to send such inquiries to the Rcpp-devel mailing list which I am cc'ing on this reply. On Thu, Jan 20, 2011 at 3:05 PM, mtck1982 xiaoch@gmail.com wrote: Hi All, I am new to this area and use Rcpp to call C++ from R and try to build the package under Windows 7. I use

Re: [Rd] [Rcpp-devel] Calling C++ from R

2011-01-21 Thread Dirk Eddelbuettel
On 21 January 2011 at 06:44, Douglas Bates wrote: | It is more effective to send such inquiries to the Rcpp-devel mailing | list which I am cc'ing on this reply. Correct. | On Thu, Jan 20, 2011 at 3:05 PM, mtck1982 xiaoch@gmail.com wrote: | | Hi All, | | I am new to this area and use

Re: [Rd] plotmath indices: suggested addition to help file

2011-01-21 Thread Peter Ehlers
On 2011-01-21 02:27, Martin Maechler wrote: Thank you, Claudia, CB == Claudia Beleitescbelei...@units.it on Thu, 20 Jan 2011 14:05:41 +0100 writes: CB Dear all, I just stumbled over the fact that subsetting CB by square bracket will only output the first given CB

Re: [Rd] plotmath indices: suggested addition to help file

2011-01-21 Thread Martin Maechler
PE == Peter Ehlers ehl...@ucalgary.ca on Fri, 21 Jan 2011 06:17:20 -0800 writes: PE On 2011-01-21 02:27, Martin Maechler wrote: Thank you, Claudia, CB == Claudia Beleitescbelei...@units.it on Thu, 20 Jan 2011 14:05:41 +0100 writes: CB Dear all, I just

[Rd] Windows script editor and locale

2011-01-21 Thread peter dalgaard
Maybe I'm just overlooking something, but I can't figure out how to set/change the locale of a file loaded into the built-in script editor on Windows. The generic issue is that if I make a teaching script on a Mac, save it to a USB stick, and open it in the script editor in a classroom, then

Re: [Rd] Windows script editor and locale

2011-01-21 Thread Prof Brian Ripley
There is no support for files in alternative encodings in RGui's menus: not to source files nor to load into a pager or the script editor. (I believe all of those long predate any support for encodings in R.) Such provision is rather rare on Windows: files are almost everywhere assumed to

Re: [Rd] plotmath indices: suggested addition to help file

2011-01-21 Thread Claudia Beleites
Dear all, after realizing yesterday that my suggestion was not yet quite ripe as the character version is very limited, I decided to wait a bit before summarizing the outcome to a better proposition instead of creating too much fuss. Martin, thanks for your support systematic table :-) My