Re: [Rd] cat with backspace and newline characters

2013-11-05 Thread Kenn Konstabel
I just tried it on ubuntu but within RStudio: > cat("abc\b") ab > cat("abc\b\n") ab > sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C LC_COLLATE=C [5] LC_MONETARY=CLC_MESSAGES=CLC_P

Re: [Rd] Recursive objects

2011-05-04 Thread Kenn Konstabel
On Wed, May 4, 2011 at 3:26 PM, Hadley Wickham wrote: > Hi all, > > Does anyone have a comprehensive list of recursive-type objects in R? > is.recursive defines them as by exclusion: "most types of objects are > regarded as recursive, except for  vector types, ‘NULL’ and symbols > (as given by ‘as

[Rd] suggestions re trunc.POSIXt

2011-03-23 Thread Kenn Konstabel
s the length of first element. So I'd suggest changig this too, replacing the lines like x$sec <- 0 by x$sex[] <- 0 (the second version would preserve the number of elements). (Changed version at the end). It doesn't seem like this change could possibly break any existing code. Be

Re: [Rd] about textConnection

2011-03-14 Thread Kenn Konstabel
te: > Kenn, > > you might have had a point a while ago, but you may want to check most > recent R and re-evaluate: > > ?textConnection > [...] > object: character. A description of the connection. For an input > this is an R character vector object

Re: [Rd] about textConnection

2011-03-14 Thread Kenn Konstabel
Hello, `textConnection` prepares arguments for an internal function, and one of these arguments is "description" that must be a character vector of length 1 (or so it seems). Now the one and only argument you usually give to `textConnection` is called "object"; from the code you can see how this

Re: [Rd] scoping/non-standard evaluation issue

2011-01-06 Thread Kenn Konstabel
. - Year + Year)) # instead of just update(this) ... and this helped, too, i.e. f(mod.2) worked. Best regards, Kenn Kenn Konstabel Department of Chronic Diseases National Institute for Health Development Hiiu 42 Tallinn, Estonia On Tue, Jan 4, 2011 at 11:35 PM, John Fox wrote: > Dear r-devel list