[R] debug package in R 2.4.0

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[R] debug package in R 2.4.0

Shlomo Katchmalik
Hi.

I recently upgraded to R version 2.4.0, and I have found that the
"debug" package no longer works.  In particular, when I try to debug a
function, I get the following error message:

Error in attr(value, "row.names") <- rlabs :
        row names must be 'character' or 'integer', not 'double'

I have, of course, taken all the necessary preceding steps, such as
issuing the commands
library(debug)
source("test.r")
mtrace(test)
test()

Does anyone know how to get around this problem?

Thanks,
Shlomo.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: [R] debug package in R 2.4.0

Henric Nilsson
Den 2006-10-12 21:39, Shlomo Katchmalik skrev:

> Hi.
>
> I recently upgraded to R version 2.4.0, and I have found that the
> "debug" package no longer works.  In particular, when I try to debug a
> function, I get the following error message:
>
> Error in attr(value, "row.names") <- rlabs :
>         row names must be 'character' or 'integer', not 'double'
>
> I have, of course, taken all the necessary preceding steps, such as
> issuing the commands
> library(debug)
> source("test.r")
> mtrace(test)
> test()

I can confirm the above behaviour.

> Does anyone know how to get around this problem?

Have you tried contacting the package maintainer, as suggested by the
posting guide? (In this case Mark Bravington, CCed here.)

Hopefully it's fixable. I'm deeply in love with `debug'...


HTH,
Henric



>
> Thanks,
> Shlomo.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: [R] debug package in R 2.4.0

MarkBravington
Hi Henric et al.

Thanks for the notification. The R development cycle always fills me with dread in case my packages stop working! I do plan to change debug (and no doubt mvbutils) to match the changes in R, hopefully in the next week or two... depends on spare time, sigh...

bye
Mark


-----Original Message-----
From: Henric Nilsson [mailto:[hidden email]]
Sent: Thu 12/10/2006 22:05
To: Shlomo Katchmalik
Cc: [hidden email]; Bravington, Mark (CMIS, Hobart)
Subject: Re: [R] debug package in R 2.4.0

Den 2006-10-12 21:39, Shlomo Katchmalik skrev:

> Hi.
>
> I recently upgraded to R version 2.4.0, and I have found that the
> "debug" package no longer works.  In particular, when I try to debug a
> function, I get the following error message:
>
> Error in attr(value, "row.names") <- rlabs :
>         row names must be 'character' or 'integer', not 'double'
>
> I have, of course, taken all the necessary preceding steps, such as
> issuing the commands
> library(debug)
> source("test.r")
> mtrace(test)
> test()

I can confirm the above behaviour.

> Does anyone know how to get around this problem?

Have you tried contacting the package maintainer, as suggested by the
posting guide? (In this case Mark Bravington, CCed here.)

Hopefully it's fixable. I'm deeply in love with `debug'...


HTH,
Henric



>
> Thanks,
> Shlomo.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

[R] How to force x AND y log scale in xyplot?

Thomas P. Colson
 the following plots a log-log plot of cumulative drainage area, but the
axis labels are 10^-1, ...10^5, so forth.

xyplot(white$rank.PRank~white$basin_area,scales=list(log=TRUE),xlab="Drainag
e Area m^2",ylab="P(A>A*)")





When I try this, I get the desired labels, sort of: the x axis contains
"100, 1000,10000" and then "1e+05, 1e+06"

xyplot(white$rank.PRank~white$basin_area,scales=list(y=list(log=TRUE,at=c(.0
001,.001,.01,.1,1)),x=list(log=TRUE,at=c(10,100,1000,10000,100000,1000000)))
,xlab="Drainage Area m^2",ylab="P(A>A*)")

How to make those last two x-axis labels "conform"?

Thanks.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: [R] How to force x AND y log scale in xyplot?

Deepayan Sarkar
On 10/12/06, Thomas P. Colson <[hidden email]> wrote:

>  the following plots a log-log plot of cumulative drainage area, but the
> axis labels are 10^-1, ...10^5, so forth.
>
> xyplot(white$rank.PRank~white$basin_area,scales=list(log=TRUE),xlab="Drainag
> e Area m^2",ylab="P(A>A*)")
>
>
>
>
>
> When I try this, I get the desired labels, sort of: the x axis contains
> "100, 1000,10000" and then "1e+05, 1e+06"
>
> xyplot(white$rank.PRank~white$basin_area,scales=list(y=list(log=TRUE,at=c(.0
> 001,.001,.01,.1,1)),x=list(log=TRUE,at=c(10,100,1000,10000,100000,1000000)))
> ,xlab="Drainage Area m^2",ylab="P(A>A*)")
>
> How to make those last two x-axis labels "conform"?

Specify a 'labels' as well, e.g.

x=list(log=TRUE,
       at=c(10,100,1000,10000,100000,1000000),
       labels = c("10","100","1000","10000","100000","1000000"))

-Deepayan

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.