Re: [Rd] Wish there were a strict mode for R interpreter. What

2011-04-11 Thread Barry Rowlingson
On Sat, Apr 9, 2011 at 10:08 PM, Ted Harding ted.hard...@wlandres.net wrote: I'm with Duncan on this one! On the other hand, I can understand the issues that Paul's students might encounter. I think the right thing to so is to introduce the students to the basics of scoping, early in the

Re: [Rd] R CMD build now removes empty dirs

2011-04-11 Thread Martin Maechler
Pages, Herve hpa...@fhcrc.org on Tue, 29 Mar 2011 23:56:47 -0700 (PDT) writes: Hi, It's unfortunate that with recent revisions of R 2.13 (this appeared in revision 54640, March 2), 'R CMD build' now removes empty dirs in the package. People might have good reasons for

[Rd] open.exe Virus W32.ATRAPS

2011-04-11 Thread Costas Vorlow
Hello, I am not sure if this is the correct mailing list to send this email... I was trying to install on windows XP latest R-2.12.2 and my unvirus program (Immunet 3.0) reports a virus at open.exe while this is unpacked: W32.ATRAPS Has anyone come across the same problem? Best, Costas

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-11 Thread Martin Maechler
Fantastic. Thanks a lot, Luke! I can close the thread just to say the finalit wasn't Matrix after all! ;-) On Fri, Apr 8, 2011 at 20:48, luke-tier...@uiowa.edu wrote: Fixed in R-devel by 55385 and R-2-113-branch by 55386. The problem was a call to install() in the C srouce code

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-11 Thread luke-tierney
Given the configure settings this looks like its probably an issue in regexpr's internals rather than in Matrix per se. I can confirm that with gctorture() for (i in 1:100) regexpr(package:, package:lattice, fixed = TRUE) Error in regexpr(package:, package:lattice, fixed = TRUE) :

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-11 Thread Hin-Tak Leung
--- On Fri, 8/4/11, Martin Maechler maech...@stat.math.ethz.ch wrote: Fantastic.  Thanks a lot, Luke! I can close the thread just to say the final    it wasn't Matrix after all! ;-) I am glad it is all working out - I have spent way too much time on this, having gone through about

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-11 Thread luke-tierney
Fixed in R-devel by 55385 and R-2-113-branch by 55386. The problem was a call to install() in the C srouce code without protecting another value before the install call. This particular issue was very unlikely to cause a problem outside of a gctorture context, but in that context with the memory

Re: [Rd] duplicates() function

2011-04-11 Thread B77S
which(duplicated(x)==TRUE) -- View this message in context: http://r.789695.n4.nabble.com/duplicates-function-tp3436584p3437614.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list

[Rd] pd

2011-04-11 Thread marc rousseau
Hi I'd like to know what does the letter in pd stand for ? thx [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] 采购流程优化及供应商评估与管理

2011-04-11 Thread 供应商管理
采购流程优化及供应商评估与管理   深圳 上海 广州 开课 适合对象:高层管理者、采购、品管、物流、财务等部门及其他相关部门的职业经理人。 课 程 大 纲 内 容 请 查 收 附 件!__ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] open.exe Virus W32.ATRAPS

2011-04-11 Thread peter dalgaard
On Apr 10, 2011, at 09:43 , Costas Vorlow wrote: Hello, I am not sure if this is the correct mailing list to send this email... I was trying to install on windows XP latest R-2.12.2 and my unvirus program (Immunet 3.0) reports a virus at open.exe while this is unpacked: W32.ATRAPS

Re: [Rd] pd

2011-04-11 Thread Ben Bolker
marc rousseau mk04 at tlb.sympatico.ca writes: Hi I'd like to know what does the letter in pd stand for ? thx In what context? The only R-context answers I can think of are Peter Dalgaard (an R-core member) or positive definite (see ?pdClasses in the nlme package). You're

Re: [Rd] Inconsistency between rowMeans documentation and reality?

2011-04-11 Thread Prof Brian Ripley
I suspect you omitted some of the help page: As they are written for speed, they blur over some of the subtleties of ‘NaN’ and ‘NA’. So, given that (and that real NA is a specific NaN) I think it is perfectly reasonable to claim they are consistent with mean. On Tue, 5 Apr 2011, Gavin

Re: [Rd] Inconsistency between rowMeans documentation and reality?

2011-04-11 Thread Gavin Simpson
On Mon, 2011-04-11 at 15:57 +0100, Prof Brian Ripley wrote: I suspect you omitted some of the help page: Yes. My apologies, I don't know how I missed that - I did read it several times aware that I might be overlooking something sensible such as the sentence you quote. Sorry for the noise. G

Re: [Rd] R CMD build --resave-data

2011-04-11 Thread Uwe Ligges
On 11.04.2011 02:47, Hervé Pagès wrote: Hi, More about the new --resave-data option As mentioned previously here https://stat.ethz.ch/pipermail/r-devel/2011-April/060511.html 'R CMD build' and 'R CMD INSTALL' handle this new option inconsistently. The former does --resave-data=gzip by

Re: [Rd] duplicates() function

2011-04-11 Thread Uwe Ligges
Thanks for your answer, but: 1. can you please cite the question? It is hard for mailing list readers to follow now. 2. I think which(duplicated(x)) should be simpler, faster and less confusing, if your code would be the solution - which is not. 3. Please read the original question carefuly

Re: [Rd] Wish there were a strict mode for R interpreter. What

2011-04-11 Thread Davor Cubranic
On 2011-04-09, at 2:08 PM, Ted Harding wrote: I think the right thing to so is to introduce the students to the basics of scoping, early in the process of learning R. I know the basics of scoping perfectly well, but that doesn't stop me from occasionally misspelling a variable name that only

Re: [Rd] Wish there were a strict mode for R interpreter. What

2011-04-11 Thread Simon Urbanek
On Apr 11, 2011, at 11:28 AM, Davor Cubranic wrote: On 2011-04-09, at 2:08 PM, Ted Harding wrote: I think the right thing to so is to introduce the students to the basics of scoping, early in the process of learning R. I know the basics of scoping perfectly well, but that doesn't stop me

Re: [Rd] Wish there were a strict mode for R interpreter. What

2011-04-11 Thread Spencer Graves
On 4/11/2011 8:46 AM, Simon Urbanek wrote: On Apr 11, 2011, at 11:28 AM, Davor Cubranic wrote: On 2011-04-09, at 2:08 PM, Ted Harding wrote: I think the right thing to so is to introduce the students to the basics of scoping, early in the process of learning R. I know the basics of scoping

[Rd] sort.int(S3object) strips class but not the is.object flag

2011-04-11 Thread William Dunlap
If x has an S3 class then sort.int(x) returns a value without an S3 class but which has the is.object flag set, which, I think, causes identical() give a false/misleading report: x - structure(1:3, class=unrecognizedClass) y - sort.int(x) t - 1:3 identical(y, t) # expect TRUE [1]

Re: [Rd] sort.int(S3object) strips class but not the is.object flag

2011-04-11 Thread William Dunlap
-Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of William Dunlap Sent: Monday, April 11, 2011 10:10 AM To: R-devel@r-project.org Subject: [Rd] sort.int(S3object) strips class but not the is.object flag If x has an S3

Re: [Rd] sort.int(S3object) strips class but not the is.object flag

2011-04-11 Thread Duncan Murdoch
On 11/04/2011 1:10 PM, William Dunlap wrote: If x has an S3 class then sort.int(x) returns a value without an S3 class but which has the is.object flag set, which, I think, causes identical() give a false/misleading report: I think your analysis is correct. It's too late for 2.13.0, but I'll

Re: [Rd] duplicates() function

2011-04-11 Thread Duncan Murdoch
On 08/04/2011 11:39 AM, Joshua Ulrich wrote: On Fri, Apr 8, 2011 at 10:15 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 08/04/2011 11:08 AM, Joshua Ulrich wrote: How about: y- rep(NA,length(x)) y[duplicated(x)]- match(x[duplicated(x)] ,x) That's a nice solution for vectors.

Re: [Rd] sort.int(S3object) strips class but not the is.object flag

2011-04-11 Thread Duncan Murdoch
On 11/04/2011 1:10 PM, William Dunlap wrote: If x has an S3 class then sort.int(x) returns a value without an S3 class but which has the is.object flag set, which, I think, causes identical() give a false/misleading report: Fixed in R-devel as of r55409. Duncan Murdoch x-

[Rd] Conditional Suggests

2011-04-11 Thread Geoff Jentry
Hi ... I came across an old post on R-devel that describes a situation very similar to one I find myself in: https://stat.ethz.ch/pipermail/r-devel/2006-December/043917.html As you can see in Gregor's example, the situation is that if I am writing Pkg A, I want to detect if Pkg B exists - if

Re: [Rd] Wish there were a strict mode for R interpreter. What

2011-04-11 Thread Spencer Graves
Another example: plot.landsurveydata: no visible binding for global variable 'value' plot.landsurveydata: no visible binding for global variable 'variable' plot.landsurveydata - function(...){ # ... qplot(time., value, data=X, color=variable, ...) # where value and variable are columns of the

Re: [Rd] Wish there were a strict mode for R interpreter. What

2011-04-11 Thread Roebuck,Paul L
On 4/11/11 11:04 AM, Spencer Graves spencer.gra...@prodsyse.com wrote: On 4/11/2011 8:46 AM, Simon Urbanek wrote: On Apr 11, 2011, at 11:28 AM, Davor Cubranic wrote: On 2011-04-09, at 2:08 PM, Ted Harding wrote: I think the right thing to so is to introduce the students to the basics

Re: [Rd] Wish there were a strict mode for R interpreter. What

2011-04-11 Thread Duncan Murdoch
On 11/04/2011 3:41 PM, Roebuck,Paul L wrote: On 4/11/11 11:04 AM, Spencer Gravesspencer.gra...@prodsyse.com wrote: On 4/11/2011 8:46 AM, Simon Urbanek wrote: On Apr 11, 2011, at 11:28 AM, Davor Cubranic wrote: On 2011-04-09, at 2:08 PM, Ted Harding wrote: I think the right thing to

Re: [Rd] Conditional Suggests

2011-04-11 Thread Hadley Wickham
On Mon, Apr 11, 2011 at 1:34 PM, Geoff Jentry geoffjen...@hexdump.org wrote: Hi ... I came across an old post on R-devel that describes a situation very similar to one I find myself in: https://stat.ethz.ch/pipermail/r-devel/2006-December/043917.html As you can see in Gregor's example, the

Re: [Rd] Conditional Suggests

2011-04-11 Thread Geoff Jentry
On Mon, 11 Apr 2011, Hadley Wickham wrote: To me this reads as being in the wheelhouse of what 'Suggests' is supposed to imply, as per the R Extensions manual.  The problem here is that if PkgB is put down as 'Suggests', it is required for R CMD check to pass which seems to defeat the purpose of

[Rd] proposal for adapting code of function gl()

2011-04-11 Thread Joris Meys
Based on a discussion on SO I ran some tests and found that converting to a factor is best done early in the process. Hence, I propose to rewrite the gl() function as : gl2 - function(n, k, length = n * k, labels = 1:n, ordered = FALSE){ rep( rep(