Re: [Rd] Improving string concatenation

2015-06-16 Thread Joshua Bradley
Bad choice of words I'm afraid. What I'm ultimately pushing for is a feature request. To allow string concatenation with '+' by default. Sure I can write my own string addition function (like the example I posted previously) but I use it so often that I end up putting it in every script I write. I

Re: [Rd] Improving string concatenation

2015-06-16 Thread Gabriel Becker
On Jun 16, 2015 3:44 PM, "Joshua Bradley" wrote: > > Hi, first time poster here. During my time using R, I have always found > string concatenation to be (what I feel is) unnecessarily complicated by > requiring the use of the paste() or similar commands. I don't follow. In what sense is paste co

Re: [Rd] Improving string concatenation

2015-06-16 Thread Gábor Csárdi
On Tue, Jun 16, 2015 at 10:30 PM, Joshua Bradley wrote: > One of the poster's on the SO post I linked to previously suggested this but > if '+' were made to be S4 compliant, then adding the ability to concat > strings with '+' would be a relatively simple addition (no pun intended) to > the code b

Re: [Rd] Improving string concatenation

2015-06-16 Thread Joshua Bradley
One of the poster's on the SO post I linked to previously suggested this but if '+' were made to be S4 compliant, then adding the ability to concat strings with '+' would be a relatively simple addition (no pun intended) to the code base I believe. With a lot of other languages supporting this kind

Re: [Rd] Different behavior of model.matrix between R 3.2 and R3.1.1

2015-06-16 Thread Charles C. Berry
On Tue, 16 Jun 2015, Frank Harrell wrote: Terry Therneau has been very helpful on r-help but we can't figure out what change in R in the past months made extra columns appear in model.matrix when the terms object is subsetted to remove stratification factors in a Cox model. Terry has changed

Re: [Rd] Improving string concatenation

2015-06-16 Thread Gábor Csárdi
On Tue, Jun 16, 2015 at 8:24 PM, Hervé Pagès wrote: [...] > > If I was to override `+` to concatenate strings, I would make it stick > to the recycling scheme used by arithmetic and comparison operators > (which is the most sensible of all IMO). Yeah, I agree, paste's recycling rules are sometime

Re: [Rd] Improving string concatenation

2015-06-16 Thread Hervé Pagès
Hi Joshua, On 06/16/2015 03:32 PM, Joshua Bradley wrote: Hi, first time poster here. During my time using R, I have always found string concatenation to be (what I feel is) unnecessarily complicated by requiring the use of the paste() or similar commands. When searching for how to concatenate

Re: [Rd] Improving string concatenation

2015-06-16 Thread Gábor Csárdi
On Tue, Jun 16, 2015 at 6:32 PM, Joshua Bradley wrote: [...] > An old (2005) post > on r-help > mentioned possible performance reasons as to why this type of string > concatenation is not supported out of the box but did not go into

[Rd] Different behavior of model.matrix between R 3.2 and R3.1.1

2015-06-16 Thread Frank Harrell
Terry Therneau has been very helpful on r-help but we can't figure out what change in R in the past months made extra columns appear in model.matrix when the terms object is subsetted to remove stratification factors in a Cox model. Terry has changed his logic in the survival package to avoid

[Rd] Improving string concatenation

2015-06-16 Thread Joshua Bradley
Hi, first time poster here. During my time using R, I have always found string concatenation to be (what I feel is) unnecessarily complicated by requiring the use of the paste() or similar commands. When searching for how to concatenate strings in R, several top search results show answers that s

Re: [Rd] Bugzilla activity?

2015-06-16 Thread Joris Meys
Hi Milan, I can't reproduce your first bug in R 3.2 on Windows 8.1, and I fail to reproduce that one in R 3.1.2 as well. So that might explain why that one isn't tackled. The second bug you reported I can reproduce. Cheers Joris On Tue, Jun 16, 2015 at 9:18 PM, Milan Bouchet-Valat wrote: > Hi

[Rd] Code demos via HTML help gives an error

2015-06-16 Thread Henrik Bengtsson
PROBLEM: I'm getting error: Error in order(matches$Position) : argument 1 is not a vector Whenever I try to access a package's "Code demos" page via the link on the package HTML index page. SOME TROUBLESHOOTING: Looking at for instance the 'stats' package. The "Code demos" URL takes the form

[Rd] Bugzilla activity?

2015-06-16 Thread Milan Bouchet-Valat
Hi! I was wondering whether anybody was looking at the bugs on Bugzilla. I'm asking because I've seen bugs tackled on the mailing list quite quickly, but two fully reproducible reports I've filed on Bugzilla haven't triggered any reaction in several weeks (for the older one). FWIW, these are: - L

Re: [Rd] Add-on argument in sample()

2015-06-16 Thread Peter Meissner
Am .06.2015, 14:55 Uhr, schrieb Millot Gael : Hi. I have a problem with the default behavior of sample(), which performs sample(1:x) when x is a single value. This behavior is well explained in ?sample. However, this behavior is annoying when the number of value is not predictable. Would i

Re: [Rd] Add on argument in seq()

2015-06-16 Thread Millot Gael
ok. Many thanks for your help ! Best, Gael. De : Gabriel Becker [mailto:gmbec...@ucdavis.edu] Envoyé : lundi 15 juin 2015 23:54 À : Hadley Wickham Cc : Millot Gael; r-devel Objet : Re: [Rd] Add on argument in seq() Millot, On Mon, Jun 15, 2015 at 9:19 AM, Hadley Wickham mailto:h.wick...@gma

Re: [Rd] back port of Bug 15899 fix missing from R 3.2.1 RC release!!!

2015-06-16 Thread Martin Maechler
> Jack Howarth > on Mon, 15 Jun 2015 22:03:59 -0400 writes: > Is there a reason why the fix for Bug 15899 - Omitted 'extern' on > 'R_running_as_main_program' after refactor can cause linker errors for > applications embedding R... > https://bugs.r-project.org/bugzilla