Re: [Rd] cat with backspace and newline characters

2013-11-06 Thread Renaud Gaujoux
I agree that the handling of \b is not that strange, once one agrees on what \b actually means, i.e. "go back one character" and not "delete previous character". The fact that R GUI on Mac and Windows interprets/renders it differently shows that normality and strangeness is quite relative though.

Re: [Rd] cat with backspace and newline characters

2013-11-06 Thread Simon Urbanek
On Nov 6, 2013, at 3:47 AM, Renaud Gaujoux wrote: >> Anyway, >> thanks for all the experiments, and (to Renaud) support.rstudio.org is >> the place to report such problems. >> > > Funny how the post diverged to an RStudio-related issue. > Anyway, I posted a link to this post at support.rstudi

Re: [Rd] Dynamic list creation (SEXP in C) returns error "unimplemented type (29) in 'duplicate'" Dynamic list creation (SEXP in C) returns error

2013-11-06 Thread Radford Neal
On Wed, Nov 06, 2013 at 02:40:59PM -0300, George Vega Yon wrote: > Hi! You are right, what I actually use is SET_LENGTH... Is that ok? > El 06/11/2013 14:00, "Radford Neal" escribi?: Is SET_LENGTH a documented feature of the API? Not that I can see. However, it is indeed different from SETLENGT

Re: [Rd] Dynamic list creation (SEXP in C) returns error "unimplemented type (29) in 'duplicate'" Dynamic list creation (SEXP in C) returns error

2013-11-06 Thread George Vega Yon
Hi! You are right, what I actually use is SET_LENGTH... Is that ok? El 06/11/2013 14:00, "Radford Neal" escribió: > "changing its size using SETLENGTH (Rf_lengthgets)" > > NO! NO! NO! SETLENGTH does not do the same thing as Rf_lengthgets. > You should never use SETLENGTH, which is not part of th

Re: [Rd] Dynamic list creation (SEXP in C) returns error "unimplemented type (29) in 'duplicate'" Dynamic list creation (SEXP in C) returns error

2013-11-06 Thread Radford Neal
"changing its size using SETLENGTH (Rf_lengthgets)" NO! NO! NO! SETLENGTH does not do the same thing as Rf_lengthgets. You should never use SETLENGTH, which is not part of the API, and really should not even exist. For that matter Rf_lengthgets is also not part of the API. I recommend getting t

Re: [Rd] How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit

2013-11-06 Thread Renaud Gaujoux
Many thanks for all responses and clarification! It worked great by defining a dummy environment in the package namespace and calling reg.finalizer to "attach" the cleanup function to it. Bests, Renaud On 6 November 2013 13:54, Prof Brian Ripley wrote: > On 06/11/2013 11:36, Duncan Murdoch wrot

Re: [Rd] How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit

2013-11-06 Thread Prof Brian Ripley
On 06/11/2013 11:36, Duncan Murdoch wrote: On 13-11-06 5:26 AM, Renaud Gaujoux wrote: Hi, it seems that the package hooks .onLoad and its C++ pendant R_unload_mylib are actually not called when R quits, but only when explicitly calling detach('package:mylib', unload = TRUE). Maybe this is platf

Re: [Rd] How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit

2013-11-06 Thread Duncan Murdoch
On 13-11-06 5:26 AM, Renaud Gaujoux wrote: Hi, it seems that the package hooks .onLoad and its C++ pendant R_unload_mylib are actually not called when R quits, but only when explicitly calling detach('package:mylib', unload = TRUE). Maybe this is platform specific, I'm on Ubuntu 13.10 - R 3.0.2

[Rd] How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit

2013-11-06 Thread Renaud Gaujoux
Hi, it seems that the package hooks .onLoad and its C++ pendant R_unload_mylib are actually not called when R quits, but only when explicitly calling detach('package:mylib', unload = TRUE). Maybe this is platform specific, I'm on Ubuntu 13.10 - R 3.0.2 (see below). * is there a mechanism that a

Re: [Rd] [PATCH] minor suggestions for R-ints manual

2013-11-06 Thread Scott Kostyshak
On Tue, Nov 5, 2013 at 11:43 AM, Martin Maechler wrote: >> Scott Kostyshak >> on Sat, 12 Oct 2013 17:50:52 -0400 writes: > > > Attached is a patch with minor suggestions for the R-ints > > manual at r64048. The most substantial change is the > > following: > > > The t

Re: [Rd] cat with backspace and newline characters

2013-11-06 Thread Renaud Gaujoux
> Anyway, > thanks for all the experiments, and (to Renaud) support.rstudio.org is > the place to report such problems. > Funny how the post diverged to an RStudio-related issue. Anyway, I posted a link to this post at support.rstudio.org: http://support.rstudio.org/help/discussions/problems/9242-