Re: [Rd] combining large list of data.frames

2012-04-20 Thread Patrick Aboyoun
Cole, Bioconductor's high throughput sequencing infrastructure package IRanges contains code that may be useful for speeding up base::rbind.data.frame. I've extracted the salient bits from that rbind method, but left the corner case handling code out. IRanges's rbind method took the approach of

[Rd] Conflict from saved implicit generics in methods package for rcond, norm, backsolve

2012-02-27 Thread Patrick Aboyoun
This issue ties loosely into other recent S4 topics on this board. The methods package defines a number of implicit generics for linear algebra related functions (rcond, norm, backsolve) that, when used, interfere with base package operations. Here is the cut-and-paste version of the code the

Re: [Rd] Unstable reproduce for potential issue with CHARSXP creation

2012-02-19 Thread Patrick Aboyoun
, Patrick On Feb 16, 2012, at 5:08 PM, Patrick Aboyoun wrote: > I stumbled across one of those intermittent bugs where the code sometimes > works and sometimes doesn't. Below is an example run showing a failure where > a CHARSXP object was not properly created (by the sub function

[Rd] Unstable reproduce for potential issue with CHARSXP creation

2012-02-19 Thread Patrick Aboyoun
I stumbled across one of those intermittent bugs where the code sometimes works and sometimes doesn't. Below is an example run showing a failure where a CHARSXP object was not properly created (by the sub function?). I was able to reproduce this error on three different R builds in fresh R ses

[Rd] Adding more man page links to base::all.vars

2010-10-15 Thread Patrick Aboyoun
I was having a hard time finding the all.vars function (and wound up creating a poor man's version -- see below). I see that there are links to all.vars in the stats/man/case.names.Rd and stats/man/formula.Rd. I was wondering if more crosslinks could be made for this function, particularly in base/

[Rd] Issue with aggregate.ts and/or %\% on Windows

2010-04-19 Thread Patrick Aboyoun
I've stumbled across an issue with aggregate.ts that either is due to a misuse of %/% or something deeper relating to numerical precision on Windows. The test code is x <- rep(6:10, 1:5) as.vector(aggregate(as.ts(x), FUN = mean, ndeltat = 5)) On Linux and Mac I get the correct answer > x <- r

[Rd] Difference between is(<>, "ANY") and extends(<>, "ANY")

2009-09-08 Thread Patrick Aboyoun
Forgive the multiple posts, but I am resending a issue under a new subject so it doesn't get lost. There is inconsistent behavior between is and extends for class ANY. All classes (even non-existent ones) extend ANY according to methods::extends, but only S4 objects are of class ANY according t

Re: [Rd] Reissue: Base "Object" class to use in S4 slot specification

2009-09-08 Thread Patrick Aboyoun
atrick Simon Urbanek wrote: On Sep 8, 2009, at 12:39 , Simon Urbanek wrote: On Sep 8, 2009, at 12:14 , Patrick Aboyoun wrote: This is a reissue of a question I had asked a few weeks ago to see if anyone had any thoughts on the matter. I am looking to have slot in an S4 class definition

[Rd] Reissue: Base "Object" class to use in S4 slot specification

2009-09-08 Thread Patrick Aboyoun
This is a reissue of a question I had asked a few weeks ago to see if anyone had any thoughts on the matter. I am looking to have slot in an S4 class definition that can take any (S3 or S4) object. The ANY class seemed to be a good candidate, but the is() function definition performs an S3Case

[Rd] Base "Object" class to use in S4 slot specification

2009-08-18 Thread Patrick Aboyoun
I am looking to have slot in an S4 class definition that can take any (S3 or S4) object. The ANY class seemed to be a good candidate, but the is() function definition performs an S3Case test before checking if methods:::.identC(class2, "ANY"). The result is the is() function does not consider v

[Rd] validObject throws non-caught error when slot doesn't exist

2009-06-18 Thread Patrick Aboyoun
I have been retooling an S4 class definition to include another slot and have found that the methods::validObject function (defined in methods/R/SClasses.R) in R-devel throws an error that isn't caught internally (and thus not controllable by 'test' argument) when retrieving a non-existent slot

Re: [Rd] In C, a fast way to slice a vector?

2009-05-10 Thread Patrick Aboyoun
Saptarshi, I know of two alternatives you can use to do fast extraction of consecutive subsequences of a vector: 1) Fast copy: The method you mentioned of creating a memcpy'd vector 2) Pointer management: Creating an externalptr object in R and manage the start and end of your data If you

Re: [Rd] Managing DLLs with the same names in an R session

2009-04-24 Thread Patrick Aboyoun
Thanks Brian. I'll stop trying to hack the code to work and opt for the dll rename option. Patrick Prof Brian Ripley wrote: On Fri, 24 Apr 2009, Patrick Aboyoun wrote: I am having a problem using two DLLs with the same name, but obviously located in different directories, in an R se

[Rd] Managing DLLs with the same names in an R session

2009-04-24 Thread Patrick Aboyoun
I am having a problem using two DLLs with the same name, but obviously located in different directories, in an R session. The troublesome package is the (Bioconductor) Rgraphviz package. It relies on (3rd party software) graphviz and imports functions from (Bioconductor) package graph. Unfortun

Re: [Rd] Windows problem related to using shortPathName for Sweave style file

2008-04-10 Thread Patrick Aboyoun
you move it to a different > machine, where the full path to Sweave.sty is different. > > Duncan Murdoch > >> >> >> Cheers, >> Patrick >> >> >> Duncan Murdoch wrote: >>> On 09/04/2008 5:23 PM, Patrick Aboyoun wrote: >>>> So

Re: [Rd] Windows problem related to using shortPathName for Sweave style file

2008-04-09 Thread Patrick Aboyoun
doch wrote: > On 09/04/2008 5:23 PM, Patrick Aboyoun wrote: >> Something funky happened to my e-mail. I was trying to paste >> information related to MiKTeX and R into my message and it appears to >> have corrupted the text somehow. Anyway, the message I was trying to >

Re: [Rd] Windows problem related to using shortPathName for Sweave style file

2008-04-09 Thread Patrick Aboyoun
Something funky happened to my e-mail. I was trying to paste information related to MiKTeX and R into my message and it appears to have corrupted the text somehow. Anyway, the message I was trying to get across is that the tex file contains the path \usepackage{E:/paboyoun/BBS-2~1.2-B/R/share/

[Rd] Windows problem related to using shortPathName for Sweave style file

2008-04-09 Thread Patrick Aboyoun
In the process of updating R to R 2.7 alpha or R 2.7 beta for the BioConductor 2.2 builds on Windows, I have hit a snag because the BioC build system has long path names (e.g. D:\biocbld\bbs-2.2-bioc\R) and these path names are not resolving properly by MiKTeX 2.7 during vignette construction.