(Resending with fewer recipients...)
On Apr 8, 2011, at 07:09 , Hin-Tak Leung wrote:
> --- On Fri, 8/4/11, peter dalgaard wrote:
>
>> On Apr 7, 2011, at 23:57 , Hin-Tak Leung wrote:
>>
>>>
>>> Oh, I am tracking both R and Matrix via git-svn and
>> retrieves all revisions to all branches daily
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
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.
'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
Hin-Tak Leung wrote:
Martin Maechler wrote:
Martin Maechler
on Thu, 7 Apr 2011 12:24:32 +0200 writes:
"HL" == Hin-Tak Leung
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
--- On Thu, 7/4/11, Martin Maechler 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 Matrix via git-svn and re
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
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 argum
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
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
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
Aft
> "HL" == Hin-Tak Leung
> on Thu, 07 Apr 2011 19:31:35 +0100 writes:
HL> Martin Maechler wrote:
>>> Martin Maechler on Thu,
>>> 7 Apr 2011 12:24:32 +0200 writes:
>>
>>> "HL" == Hin-Tak Leung
>>> on Thu, 7 Apr 2011 07:51:44 +0100 writes:
>
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 no
Martin Maechler wrote:
Martin Maechler
on Thu, 7 Apr 2011 12:24:32 +0200 writes:
"HL" == Hin-Tak Leung
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 t
> Martin Maechler
> on Thu, 7 Apr 2011 12:24:32 +0200 writes:
> "HL" == Hin-Tak Leung
> 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 n
> "HL" == Hin-Tak Leung
> 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 recent changes
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 t
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
t
18 matches
Mail list logo