Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Kirill Müller
On 01/03/2014 02:34 AM, Duncan Murdoch wrote: Carriage returns usually don't matter in LaTeX I'd rather say they do. One is like a space, two or more end a paragraph and start a new one. If newlines are stripped away, the meaning of the TeX code can change, in some cases dramatically (e.g. if c

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Martin Maechler
> Kirill Müller > on Fri, 3 Jan 2014 02:04:06 +0100 writes: > On 01/03/2014 01:59 AM, Duncan Murdoch wrote: >> But results=tex is not the default. Having defaults for >> one option depend on the setting for another is >> confusing, so I think the current setting is ap

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Duncan Murdoch
It's dishonest to quote me out of context. Duncan Murdoch On 14-01-03 3:40 AM, Kirill Müller wrote: On 01/03/2014 02:34 AM, Duncan Murdoch wrote: Carriage returns usually don't matter in LaTeX I'd rather say they do. One is like a space, two or more end a paragraph and start a new one. If new

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Kirill Müller
I'm sorry, I didn't mean to be rude. Do you prefer including the entire original message when replying? Or perhaps I misunderstood you when you wrote: > Carriage returns usually don't matter in LaTeX, so I didn't even know about this option, though I use results=tex quite often. I had to look

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Duncan Murdoch
On 14-01-03 4:57 AM, Martin Maechler wrote: Kirill Müller on Fri, 3 Jan 2014 02:04:06 +0100 writes: > On 01/03/2014 01:59 AM, Duncan Murdoch wrote: >> But results=tex is not the default. Having defaults for >> one option depend on the setting for another is >> confusi

Re: [Rd] Tab formatting in dummy.coef.R

2014-01-03 Thread Martin Maechler
> Paul Johnson > on Thu, 2 Jan 2014 22:29:29 -0600 writes: > Happy New Year I recognize this is a low priority issue, > but... I'll fix it if you let me. > There are some TABs where R style calls for 4 spaces. This is your not quite correct interpretation. The R intern

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Duncan Murdoch
On 14-01-03 5:47 AM, Kirill Müller wrote: I'm sorry, I didn't mean to be rude. Do you prefer including the entire original message when replying? Or perhaps I misunderstood you when you wrote: You don't need to include irrelevant material in your reply, but you should include explanatory mater

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Kirill Müller
On 01/03/2014 01:06 PM, Duncan Murdoch wrote: On 14-01-03 5:47 AM, Kirill Müller wrote: I'm sorry, I didn't mean to be rude. Do you prefer including the entire original message when replying? Or perhaps I misunderstood you when you wrote: You don't need to include irrelevant material in your r

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Duncan Murdoch
On 03/01/2014 7:32 AM, Kirill Müller wrote: On 01/03/2014 01:06 PM, Duncan Murdoch wrote: > On 14-01-03 5:47 AM, Kirill Müller wrote: >> I'm sorry, I didn't mean to be rude. Do you prefer including the entire >> original message when replying? Or perhaps I misunderstood you when you >> wrote: > >

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Martin Maechler
> Duncan Murdoch > on Fri, 3 Jan 2014 05:52:27 -0500 writes: > On 14-01-03 4:57 AM, Martin Maechler wrote: >>> Kirill Müller on >>> Fri, 3 Jan 2014 02:04:06 +0100 writes: >> >> > On 01/03/2014 01:59 AM, Duncan Murdoch wrote: >> But >> results=tex is n

Re: [Rd] class() on substitute(...) output?

2014-01-03 Thread Hadley Wickham
On Thu, Jan 2, 2014 at 7:16 PM, Henrik Bengtsson wrote: > Does it make sense to talk about the class of the output of > substitute(...)? I'm puzzled by the following outputs: > > ee <- list( > A = substitute( a <- 1 ), > B = substitute({ a <- 1 }), > C = substitute(( a <- 1 )), > D = subs

[Rd] wishlist: decreasing argument to is.unsorted

2014-01-03 Thread Patrick Burns
I've just realized that it could be handy to have a 'decreasing' argument in 'is.unsorted'. And I'm cheekily hoping someone else will implement it. It is easy enough to work around (with 'rev'), but would be less hassle with an argument. The case I have in mind uses 'is.unsorted' in 'stopifnot'

Re: [Rd] class() on substitute(...) output?

2014-01-03 Thread John Chambers
On Jan 3, 2014, at 9:46 AM, Hadley Wickham wrote: > On Thu, Jan 2, 2014 at 7:16 PM, Henrik Bengtsson > wrote: >> Does it make sense to talk about the class of the output of >> substitute(...)? I'm puzzled by the following outputs: >> >> ee <- list( >> A = substitute( a <- 1 ), >> B = subst

[Rd] ordering of raw vectors

2014-01-03 Thread Hervé Pagès
Hi, Found in the man page for max(), min(), pmax(), pmin(), etc...: (Note that all versions fail for raw and complex vectors since these have no ordering.) It seems that raw vectors *do* have an ordering (why wouldn't they?): > x <- as.raw(0:8) > x [1] 00 01 02 03 04 05 06 07 08 >

Re: [Rd] wishlist: decreasing argument to is.unsorted

2014-01-03 Thread Gábor Csárdi
While we are here, how about an is.sorted() function? It is trivial and helps readability a lot imho. Then one does not have to write things like stopifnot(!is.unsorted(x)) but can write stopifnot(is.sorted(x)) instead. Gabor On Fri, Jan 3, 2014 at 1:40 PM, Patrick Burns wrote: > > I've just

Re: [Rd] substring() and propagation of names

2014-01-03 Thread Hervé Pagès
On 12/13/2013 01:07 AM, Hervé Pagès wrote: Hi, In R < 3.0.0, we used to get: > substring(c(A="abcdefghij", B="123456789"), 2, 6:2) A B A B A "bcdef" "2345" "bcd""23" "b" But in R >= 3.0.0, we get: > substring(c(A="abcdefghij", B="123456789"