[Rd] R --debug crashes R on Windows

2012-04-16 Thread Henrik Bengtsson
'R --debug' and 'Rterm --debug' crash R on Windows. Indeed, --debug is not a documented command line option, but it still causes a crash. This occurs with R v2.15.0 patched and R devel - both from 2012-04-09 (r58947). /Henrik __ R-devel@r-project.org

Re: [Rd] eval a SYMSXP from C

2012-04-16 Thread Whit Armstrong
Thanks, Duncan. Your suggestion works. And thanks for the hint, about the env. I suppose I should preserve the env of the original function where the substitute was called... Cheers, Whit On Mon, Apr 16, 2012 at 8:01 PM, Duncan Murdoch wrote: > On 12-04-16 5:53 PM, Whit Armstrong wrote: >> >

Re: [Rd] eval a SYMSXP from C

2012-04-16 Thread Duncan Murdoch
On 12-04-16 5:53 PM, Whit Armstrong wrote: Can someone offer some advice on how to properly evaluate a SYMSXP from a .Call ? I have the following in R: variable xn, with an attribute "mu" which references the variable mu in the global environment. I know "references" is a loose term; mu was de

[Rd] eval a SYMSXP from C

2012-04-16 Thread Whit Armstrong
Can someone offer some advice on how to properly evaluate a SYMSXP from a .Call ? I have the following in R: variable xn, with an attribute "mu" which references the variable mu in the global environment. I know "references" is a loose term; mu was defined in this fashion as a way to implement d

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread Kasper Daniel Hansen
On Mon, Apr 16, 2012 at 4:29 PM, baptiste auguie wrote: > Hi, > > Using range wouldn't help if you wanted to restrict one of the limits, > not stretch it > > plot(1:11, y <- seq(-5, 5), ylim= range(0, y)) range(pmin(0,y)) Kasper > > baptiste > > On 17 April 2012 08:20, Greg Snow <538...@gmail.

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread baptiste auguie
Hi, Using range wouldn't help if you wanted to restrict one of the limits, not stretch it plot(1:11, y <- seq(-5, 5), ylim= range(0, y)) baptiste On 17 April 2012 08:20, Greg Snow <538...@gmail.com> wrote: > The simple work around is to use the range function, if you use > something like:  xlim

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread Greg Snow
The simple work around is to use the range function, if you use something like: xlim=range(0,x) then 0 will be included in the range of the x axis (and if there are values less than 0 then those values will be included as well) and the max is computed from the data as usual. The range function wi

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread Henrik Bengtsson
Reversing the direction of an axis currently needs an explicit 'xlim' such that diff(xlim) < 0 [I think]. Thus, the assumption to do a "forward" plot when "leaving out" one element in 'xlim' by setting it to a missing value is not too bad. However, what about using +Inf and -Inf as instead? Disc

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread Duncan Murdoch
On 12-04-16 2:26 PM, William Dunlap wrote: plot(1:10, xlim=c(10,1)) reverses the x axis. If we allow plot(1:10, xlim=c(5,NA)), which direction should it go?Would this require new parameters, {x,y}{min,max} or new paremeters {x,y}{axisDirection}? I'd rather not add another parameter. So if

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread Marc Schwartz
I would say that Bill's example of reversing the axis range, which I have used many times over the years, along with Duncan's list of potential consequences for a myriad of functions/packages, are arguments against this change. Classically, R's defaults are generally sensible and if one wants t

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread William Dunlap
plot(1:10, xlim=c(10,1)) reverses the x axis. If we allow plot(1:10, xlim=c(5,NA)), which direction should it go?Would this require new parameters, {x,y}{min,max} or new paremeters {x,y}{axisDirection}? Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > Fro

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread David L Lorenz
Paul, How about plot(x,y, xlim=c(0, max(pretty(x Dave From: Paul Johnson To: R Devel List Date: 04/16/2012 12:54 PM Subject: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch? Sent by: r-devel-boun...@r-project.org I'm looking for an R mentor. I want to propose a ch

Re: [Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread Duncan Murdoch
On 12-04-16 1:52 PM, Paul Johnson wrote: I'm looking for an R mentor. I want to propose a change in management of plot options xlim and ylim. Your suggestion sounds reasonable, but because plot limits are such a commonly used parameter, it would have to be done quite carefully. The question

[Rd] I wish xlim=c(0, NA) would work. How about I send you a patch?

2012-04-16 Thread Paul Johnson
I'm looking for an R mentor. I want to propose a change in management of plot options xlim and ylim. Did you ever want to change one coordinate in xlim or ylim? It happens to me all the time. x <- rnorm(100, m=5, s=1) y <- rnorm(100, m=6, s=1) plot(x,y) ## Oh, I want the "y axis" to show above