[Rd] SEXPTYPEs

2014-05-16 Thread Adrian Dușa
Dear list, On a follow up from my previous email, I am now trying to allocate vectors of length larger than 32-bit in C. From the R internals documentation, I read that: The sxpinfo header is defined as a 32-bit C structure... and A SEXPREC is a C structure containing the 32-bit header... The

Re: [Rd] SEXPTYPEs

2014-05-16 Thread Duncan Murdoch
On 16/05/2014, 4:16 AM, Adrian Dușa wrote: Dear list, On a follow up from my previous email, I am now trying to allocate vectors of length larger than 32-bit in C. From the R internals documentation, I read that: The sxpinfo header is defined as a 32-bit C structure... and A SEXPREC is a C

Re: [Rd] SEXPTYPEs

2014-05-16 Thread Prof Brian Ripley
On 16/05/2014 11:06, Duncan Murdoch wrote: On 16/05/2014, 4:16 AM, Adrian Dușa wrote: Dear list, On a follow up from my previous email, I am now trying to allocate vectors of length larger than 32-bit in C. From the R internals documentation, I read that: The sxpinfo header is defined as a

Re: [Rd] Bug in read.dcf(all = TRUE)?

2014-05-16 Thread Yihui Xie
Cc'ing Kurt since the version control history shows he brought it in a few years ago: https://github.com/wch/r-source/commit/53d4b432f7 The fix can be fairly simple if someone has one minute: lc_ctype - Sys.getlocale(LC_CTYPE) on.exit(Sys.setlocale(LC_CTYPE, lc_ctype), add = TRUE)

[Rd] Inconsistency in vector printing depending on length

2014-05-16 Thread Dominic Comtois
Consider the following: 20:28[1] 20 21 22 23 24 25 26 27 28 20:29 [1] 20 21 22 23 24 25 26 27 28 29 It seems that when a vector has 10 elements, it prints out differently than one with 9 (extra space before the opening bracket). I can't see why this is happening. I am writing a manual

Re: [Rd] Inconsistency in vector printing depending on length

2014-05-16 Thread William Dunlap
It seems that when a vector has 10 elements, it prints out differently than one with 9 (extra space before the opening bracket). I can't see why this is happening. It is happening because the print routine wants to be ready to print all the line-beginning [index] tags aligned with each other.

Re: [Rd] Inconsistency in vector printing depending on length

2014-05-16 Thread Lorenz, David
Dominic, Actually it makes perfect sense. When R prints vectors of length less than 9, it does not ever need to print 2 digits for the index. For lengths between 10 and 99, it may need to print an index with 2 digits, therefore, it prints the first index and all single digit indexes with a

Re: [Rd] Inconsistency in vector printing depending on length

2014-05-16 Thread Dominic Comtois
Thanks David and Bill for your answers. It does makes sense. So if I want to make things neater visually, I have no other option than to post-process the output I guess? Thx, Dominic 2014-05-16 16:58 GMT-04:00 William Dunlap wdun...@tibco.com: It seems that when a vector has 10 elements, it

[Bioc-devel] extracting low-level stuff from Biobase

2014-05-16 Thread Michael Lawrence
Would it make sense to take low-level utilities like rowQ from Biobase and move them closer the S4Vectors level? Michael [[alternative HTML version deleted]] ___ Bioc-devel@r-project.org mailing list

Re: [Bioc-devel] extracting low-level stuff from Biobase

2014-05-16 Thread Vincent Carey
i think they should probably move, but i wonder if S4Vectors is the right destination. is the row concept vector-like? i was looking for rowQ recently and expected it to be in genefilter... On Fri, May 16, 2014 at 11:04 AM, Michael Lawrence lawrence.mich...@gene.com wrote: Would it make

Re: [Bioc-devel] extracting low-level stuff from Biobase

2014-05-16 Thread Kasper Daniel Hansen
I want to remind you of matrixStats by Henrik Bengstson which basically have all of the rowXX colXX for many choices of XX. This unifies a number of utils which are now spread across multiple packages. It would be great to have all of the matrixStats functions (there are not that many)