[Rd] tzone attribute gets stripped on POSIXct variable

2009-11-29 Thread Gabor Grothendieck
The POSIXct variable xx has a tzone attribute but if I add 1 second to it then the tzone attribute gets stripped. Is that intended? > xx <- as.POSIXct(format(Sys.time()), tz = "") > dput(xx) structure(1259541335.099, class = c("POSIXt", "POSIXct"), tzone = "") > dput(xx+1) structure(1259541336.09

Re: [Rd] [Fwd: opened symbols in libR.so available.]

2009-11-29 Thread Dirk Eddelbuettel
Two quick comments while I catch up with the email back log from travelling: On 28 November 2009 at 10:50, Guillaume Yziquel wrote: | I've been told that there's an interesting scheme, used by r-base-ra, to It's 'r-base-core-ra' and I mentioned that in off-line email only to show that you can a

Re: [Rd] tiny typos in R-exts

2009-11-29 Thread Duncan Murdoch
On 29/11/2009 1:39 PM, Ben Bolker wrote: 1. footnote 5, p. 52: "there is only a fine distinction between \dots and \dots" I should hope so :-) (from context, I think one of these should be \ldots instead) 2. under "\keyword{key}", p. 45: "are not part of the packages' API." Should that be "

Re: [Rd] PROTECT and OCaml GC.

2009-11-29 Thread Guillaume Yziquel
Simon Urbanek a écrit : On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote: FWIW what I think you should be really looking at is R_PreserveObject/R_ReleaseObject. OK. Thanks. I would suggest looking at the many other R embeddings in other languages that already exist since I don't think

Re: [Rd] Display list redraw incomplete

2009-11-29 Thread Prof Brian Ripley
On Sun, 29 Nov 2009, Uwe Ligges wrote: Benilton Carvalho wrote: Hi, I'm observing the following warning with R-2.10.0 on a machine I have remote access to. Like what happened to Roger ( http://www.mail-archive.com/r-devel@r-project.org/msg08669.html ), two extra instances of X11 are open

[Rd] tiny typos in R-exts

2009-11-29 Thread Ben Bolker
1. footnote 5, p. 52: "there is only a fine distinction between \dots and \dots" I should hope so :-) (from context, I think one of these should be \ldots instead) 2. under "\keyword{key}", p. 45: "are not part of the packages' API." Should that be "package's" ? signature.asc Descripti

Re: [Rd] PROTECT and OCaml GC.

2009-11-29 Thread Simon Urbanek
On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote: > Whit Armstrong a écrit : >> I've had success w/ using a reference counting paradigm in which the outside >> memory manager calls UNPROTECT_PTR(R_object_); in its destructor. >> So, in my case (using c++ ) if objects are allocated on the heap

Re: [Rd] Tabs in R source code

2009-11-29 Thread Duncan Murdoch
On 29/11/2009 11:50 AM, Peng Yu wrote: On Sun, Nov 29, 2009 at 10:40 AM, Duncan Murdoch wrote: On 29/11/2009 10:58 AM, Peng Yu wrote: Some lines are indented by tabs and some lines are indented by spaces, in R source code. This might due to the fact that the source code is not from a single pe

Re: [Rd] Tabs in R source code

2009-11-29 Thread Peng Yu
On Sun, Nov 29, 2009 at 10:40 AM, Duncan Murdoch wrote: > On 29/11/2009 10:58 AM, Peng Yu wrote: >> >> Some lines are indented by tabs and some lines are indented by spaces, >> in R source code. This might due to the fact that the source code is >> not from a single person. But I think that it is

Re: [Rd] Tabs in R source code

2009-11-29 Thread Duncan Murdoch
On 29/11/2009 10:58 AM, Peng Yu wrote: Some lines are indented by tabs and some lines are indented by spaces, in R source code. This might due to the fact that the source code is not from a single person. But I think that it is better to enforce a single convention. My editor defaults a tab to 8

Re: [Rd] Display list redraw incomplete

2009-11-29 Thread Uwe Ligges
Benilton Carvalho wrote: Hi, I'm observing the following warning with R-2.10.0 on a machine I have remote access to. Like what happened to Roger ( http://www.mail-archive.com/r-devel@r-project.org/msg08669.html ), two extra instances of X11 are open after dev.off(). Although I'm reporting t

[Rd] Tabs in R source code

2009-11-29 Thread Peng Yu
Some lines are indented by tabs and some lines are indented by spaces, in R source code. This might due to the fact that the source code is not from a single person. But I think that it is better to enforce a single convention. My editor defaults a tab to 8 spaces. So some source doesn't seem to b

Re: [Rd] [Fwd: opened symbols in libR.so available.]

2009-11-29 Thread Guillaume Yziquel
Uwe Ligges a écrit : Guillaume Yziquel wrote: Hi. I've patched Dirk Eddelbuettel's Debian package of R, namely r-base, in order to make hidden symbols of the library libR.so available is now available: http://yziquel.homelinux.org/debian/pool/main/r/r-base/ For instance, the mkPROMISE sym

Re: [Rd] [Fwd: opened symbols in libR.so available.]

2009-11-29 Thread Uwe Ligges
Guillaume Yziquel wrote: Hi. I've patched Dirk Eddelbuettel's Debian package of R, namely r-base, in order to make hidden symbols of the library libR.so available is now available: http://yziquel.homelinux.org/debian/pool/main/r/r-base/ For instance, the mkPROMISE symbol is available: yz