Re: [Rd] R CMD check for 2.13 rc

2011-04-07 Thread Dario Strbenac
Original message Date: Tue, 5 Apr 2011 17:21:55 -0700 From: henrik.bengts...@gmail.com (on behalf of Henrik Bengtsson h...@biostat.ucsf.edu) Subject: Re: [Rd] R CMD check for 2.13 rc To: d.strbe...@garvan.org.au Cc: r-devel@r-project.org Yes, I think the warning about normalizePath

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Hin-Tak Leung
Douglas Bates wrote: I isolated the problem and tested then committed a fix. I am going to ask Martin to upload the new release as I have gotten out of sync with some of his recent changes and he will, I hope, reconcile the branches and trunk. If you need the fixed version immediately, say for

[Rd] Proposed modification to decompose() and plot.decomposed.ts()

2011-04-07 Thread Rob J Hyndman
The decompose() function truncates the seasonal component unnecessarily. I've modified the function to fix this problem, and also added the original data to the object returned (to enable better plotting). I've also modified the plot.decomposed.ts() function so that it plots the original data in

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Martin Maechler
HL == Hin-Tak Leung ht...@users.sourceforge.net on Thu, 7 Apr 2011 07:51:44 +0100 writes: HL Douglas Bates wrote: I isolated the problem and tested then committed a fix. I am going to ask Martin to upload the new release as I have gotten out of sync with some of his

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Martin Maechler
Martin Maechler maech...@stat.math.ethz.ch on Thu, 7 Apr 2011 12:24:32 +0200 writes: HL == Hin-Tak Leung ht...@users.sourceforge.net on Thu, 7 Apr 2011 07:51:44 +0100 writes: HL Douglas Bates wrote: I isolated the problem and tested then committed a fix. I am going to

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Hin-Tak Leung
Martin Maechler wrote: Martin Maechler maech...@stat.math.ethz.ch on Thu, 7 Apr 2011 12:24:32 +0200 writes: HL == Hin-Tak Leung ht...@users.sourceforge.net on Thu, 7 Apr 2011 07:51:44 +0100 writes: HL Douglas Bates wrote: I isolated the problem and tested then committed a

[Rd] How to debug reference classes?

2011-04-07 Thread A Zege
How do you debug methods of a reference class? I've been using mtrace, which is excellent, but i cannot figure out how to mtrace a reference class method. Maybe there is some other way to debug these, for example with ordinary trace? for now i am only able to use options(error=recover), which is

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Martin Maechler
HL == Hin-Tak Leung ht...@users.sourceforge.net on Thu, 07 Apr 2011 19:31:35 +0100 writes: HL Martin Maechler wrote: Martin Maechler maech...@stat.math.ethz.ch on Thu, 7 Apr 2011 12:24:32 +0200 writes: HL == Hin-Tak Leung ht...@users.sourceforge.net on Thu, 7

[Rd] R 2.13.0-beta for Windows, file.copy() throws suspicious errors due to default value of copy.mode

2011-04-07 Thread Sharpie
While checking packages against R 2.13.0-beta on Windows, I have run into a few strange error messages related to copying files. The errors all relate to file.copy() and have the form of: Error in Sys.chmod(to[okay], file.info(from[okay])$mode, TRUE) : 'mode' must be of length at least one

[Rd] anyway to get R unevaluated expr independent on arguments

2011-04-07 Thread Zheng, Xin (NIH) [C]
Hi there, Suppose the cmd is a-3, I can parse the cmd sexp with R_ParseVector and eval it. My question is - is it possible to parse a cmd like a - ?, afterwards evaluation will give corresponding result depend on different argument? In other words, '?' is just a placeholder. Thanks. Xin

Re: [Rd] anyway to get R unevaluated expr independent on arguments

2011-04-07 Thread Simon Urbanek
On Apr 7, 2011, at 5:18 PM, Zheng, Xin (NIH) [C] wrote: Hi there, Suppose the cmd is a-3, I can parse the cmd sexp with R_ParseVector and eval it. My question is - is it possible to parse a cmd like a - ?, afterwards evaluation will give corresponding result depend on different

Re: [Rd] anyway to get R unevaluated expr independent on arguments

2011-04-07 Thread Zheng, Xin (NIH) [C]
Thank you very much. I learned a lot. Regards, Xin -Original Message- From: Simon Urbanek [mailto:simon.urba...@r-project.org] Sent: Thursday, April 07, 2011 5:42 PM To: Zheng, Xin (NIH) [C] Cc: r-devel@r-project.org Subject: Re: [Rd] anyway to get R unevaluated expr independent on

Re: [Rd] How to debug reference classes?

2011-04-07 Thread John Chambers
This is a good wish-list item. The natural mechanism would be a version of the standard trace() function as a reference method with the same arguments as the current trace(), minus those that make no sense. So: xx$trace(edit, browser) for example, to trace execution of the reference method

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Hin-Tak Leung
--- On Thu, 7/4/11, Martin Maechler maech...@stat.math.ethz.ch wrote: ???  But  the prerelease version of R-2.13.0 *contains* already Matrix_0.999375-49  the one you claim has the bug. [[and you still haven't told use the exact R version you were using]] Oh, I am tracking both R and

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Hin-Tak Leung
Hin-Tak Leung wrote: Martin Maechler wrote: Martin Maechler maech...@stat.math.ethz.ch on Thu, 7 Apr 2011 12:24:32 +0200 writes: HL == Hin-Tak Leung ht...@users.sourceforge.net on Thu, 7 Apr 2011 07:51:44 +0100 writes: HL Douglas Bates wrote: I isolated the problem and

Re: [Rd] How to debug reference classes?

2011-04-07 Thread Mark.Bravington
'mtrace' will work with reference classes, at least after an object is instantiated. I'm not familiar with the guts of reference classes, but the following quick experiment was successful.. If you run the example in '?ReferenceClasses' up to including this line : xx - mEditor$new(data = xMat)

Re: [Rd] How to debug reference classes?

2011-04-07 Thread John Chambers
Good to know. However, _please_ don't use the horrible kludge in the attr(..) expression. From my experimenting, it worked fine just to say: mtrace(edit, from = xx) and even if that did not work, from = as.environment(xx) is identical in effect to the attr() expression and means something.

Re: [Rd] How to debug reference classes?

2011-04-07 Thread Mark.Bravington
Righto, thanks-- got it. When it comes to debugging, I'm no purist-- the 'debug' package has to work thru all sorts of undocumented features in R, so those of a sensitive disposition are advised _never_ to look at its internal code! Seems like the following works for mtracing refclass methods