[Rd] Problem with R math library.

2010-01-28 Thread Guillaume Yziquel
Hello. I've been working on my OCaml-R binding, and I quite pleased to see that it is functional, though far from being perfect or polished. You can find the gitweb webpage and the interface documentation at http://yziquel.homelinux.org/gitweb/?p=ocaml-r.git;a=tree http://yziq

[Rd] src/main/platform.c (PR#14198)

2010-01-28 Thread A . R . Runnalls
At line 312 in src/main/platform.c (at the latest svn revision, 51039): if (length(tl) >= 1 || !isNull(STRING_ELT(tl, 0))) should not '||' read '&&'? Likewise four lines later. Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mai

[Rd] src/library/grid/src/grid.c (PR#14199)

2010-01-28 Thread A . R . Runnalls
At around line 2590, in function gridRect() in src/library/grid/src/grid.c (at the latest svn revision, 50745), ought not temp, www and hhh to be PROTECTed within this block? Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/list

Re: [Rd] Problem with R math library.

2010-01-28 Thread Dirk Eddelbuettel
Salut Guilluame, On 28 January 2010 at 12:38, Guillaume Yziquel wrote: | Hello. | | I've been working on my OCaml-R binding, and I quite pleased to see that | it is functional, though far from being perfect or polished. You can | find the gitweb webpage and the interface documentation at | |

[Rd] Missing argument error message

2010-01-28 Thread Barry Rowlingson
Back in the days of R 2.6, if you did this, you got this: > z=function(x){x*2} > z() Error in z() : argument "x" is missing, with no default But now in this decade we get (for R 2.9 and 2.10): > z=function(x){x*2} > z() Error in z() : element 1 is empty; the part of the args list of '*' be

Re: [Rd] Problem with R math library.

2010-01-28 Thread Guillaume Yziquel
Dirk Eddelbuettel a écrit : Salut Guilluame, | > val norm_rand : unit -> float | > Random variates from the standard normal distribution. Bug: currently systematically returns -8.77332116900134373. | | Any idea as to why the function systematically returns the same value? | Is there a way th

Re: [Rd] Missing argument error message

2010-01-28 Thread Hrishi Mittal
Thanks for pointing this out Barry. I wonder what led to that change and if there is a way to revert back to the old style. I suspect the reason you didn't find hordes of confused newbies is that newbies don't read error messages. - Hrishi Mittal hrishimit...@gmail.com Try http://prettygr

Re: [Rd] Missing argument error message

2010-01-28 Thread Prof Brian Ripley
But in 2.10.1 patched z=function(x){x*2} z() Error in x * 2 : 'x' is missing [See the posting guide about checking current versions before posting ... My notes say the change was in 2.8.0 and a side effect of something else rather than deliberate.] On Thu, 28 Jan 2010, Barry Rowlingson wr

Re: [Rd] Problem with R math library. [and a minor bug report]

2010-01-28 Thread Dirk Eddelbuettel
On 28 January 2010 at 14:00, Guillaume Yziquel wrote: | Dirk Eddelbuettel a écrit : | > | > Salut Guilluame, | > | > | > val norm_rand : unit -> float | > | > Random variates from the standard normal distribution. Bug: currently systematically returns -8.77332116900134373. | > | | > | Any idea a

Re: [Rd] src/library/grid/src/grid.c (PR#14199)

2010-01-28 Thread Peter Dalgaard
a.r.runna...@kent.ac.uk wrote: > At around line 2590, in function gridRect() in > src/library/grid/src/grid.c (at the latest svn revision, 50745), ought > not temp, www and hhh to be PROTECTed within this block? Plausible, provided that anything can allocate while those are being used. Could you p

Re: [Rd] Problem with R math library.

2010-01-28 Thread Guillaume Yziquel
Guillaume Yziquel a écrit : Dirk Eddelbuettel a écrit : Salut Guilluame, | > val norm_rand : unit -> float | > Random variates from the standard normal distribution. Bug: currently systematically returns -8.77332116900134373. | | Any idea as to why the function systematically returns the same

Re: [Rd] Problem with R math library. [and a minor bug report]

2010-01-28 Thread Guillaume Yziquel
Dirk Eddelbuettel a écrit : Well, Debian comes to the rescue. Do 'sudo apt-get install r-mathlib' to the standalone library. Then copy the example file out, add the missing 'extern N01type N01_kind;' (and that it is missing may well be a bug -- I used 2.10.1 here -- anyone from R Core listening

Re: [Rd] Problem with R math library.

2010-01-28 Thread Dirk Eddelbuettel
On 28 January 2010 at 17:59, Guillaume Yziquel wrote: | Guillaume Yziquel a écrit : | > Dirk Eddelbuettel a écrit : | >> | >> Salut Guilluame, | >> | >> | > val norm_rand : unit -> float | >> | > Random variates from the standard normal distribution. Bug: | >> currently systematically returns -8.

Re: [Rd] Problem with R math library.

2010-01-28 Thread Guillaume Yziquel
Dirk Eddelbuettel a écrit : | Concerning dependencies: compile against only libRmath.so. Not against | libR.so. (I wonder why this is so crucial, though...) By design as libRmath is meanth to __standalone__ hence indepdent of R. This is a a feature. This is probably not what _you_ want as

Re: [Rd] src/main/platform.c (PR#14198)

2010-01-28 Thread Seth Falcon
On 1/28/10 3:50 AM, a.r.runna...@kent.ac.uk wrote: At line 312 in src/main/platform.c (at the latest svn revision, 51039): if (length(tl)>= 1 || !isNull(STRING_ELT(tl, 0))) should not '||' read '&&'? Likewise four lines later. Thanks, I'll fix this up. + seth -- Seth Falcon | @sfalcon

Re: [Rd] "Too many raster images" in devPS.c

2010-01-28 Thread Wolfgang Huber
Hi Paul from a user perspective, this sounds reasonable. Thank you very much, Wolfgang Il giorno Jan 28, 2010, alle ore 2:44 AM, Paul Murrell ha scritto: Wolfgang Huber wrote: > Hi, > I am finding the recently added [1] functionality of embedding raster images > into

Re: [Rd] src/library/grid/src/grid.c (PR#14199)

2010-01-28 Thread Paul Murrell
Hi This is fixed in r-devel (revision 51061). Thanks for the report! Paul Peter Dalgaard wrote: a.r.runna...@kent.ac.uk wrote: At around line 2590, in function gridRect() in src/library/grid/src/grid.c (at the latest svn revision, 50745), ought not temp, www and hhh to be PROTECTed within th

Re: [Rd] "Too many raster images" in devPS.c

2010-01-28 Thread Paul Murrell
Hi Wolfgang Huber wrote: Hi Paul from a user perspective, this sounds reasonable. Cool. That's now in r-devel. Paul Thank you very much, Wolfgang Il giorno Jan 28, 2010, alle ore 2:44 AM, Paul Murrell ha scritto: Wolfgang Huber wrote: Hi, I am finding the r