Re: [Rd] R strings, null-terminated or size delimited?

2009-11-21 Thread Duncan Murdoch
On 21/11/2009 7:44 PM, Guillaume Yziquel wrote: Duncan Murdoch a écrit : I believe I should. I'd like the OCaml / R binding to be closely knit to R internals. One reason would be for speed, the other being that I'd like to make use of camlp4 to write syntax extensions to mix OCaml and R syntax

Re: [Rd] R strings, null-terminated or size delimited?

2009-11-21 Thread Duncan Murdoch
On 21/11/2009 6:31 PM, Guillaume Yziquel wrote: Simon Urbanek a écrit : On Nov 21, 2009, at 4:12 PM, Guillaume Yziquel wrote: Hello. I've been looking at vecsexps for my binding. Concerning strings, I'm wondering: are they supposed to be null-delimited? Yes, they are null-delimited when yo

Re: [Rd] R strings, null-terminated or size delimited?

2009-11-21 Thread Guillaume Yziquel
Duncan Murdoch a écrit : I believe I should. I'd like the OCaml / R binding to be closely knit to R internals. One reason would be for speed, the other being that I'd like to make use of camlp4 to write syntax extensions to mix OCaml and R syntax. It's therefore important for me not to rely o

Re: [Rd] R strings, null-terminated or size delimited?

2009-11-21 Thread Guillaume Yziquel
Simon Urbanek a écrit : On Nov 21, 2009, at 4:12 PM, Guillaume Yziquel wrote: Hello. I've been looking at vecsexps for my binding. Concerning strings, I'm wondering: are they supposed to be null-delimited? Yes, they are null-delimited when you create/access them. OK. Fair enough. But is

Re: [Rd] R strings, null-terminated or size delimited?

2009-11-21 Thread Simon Urbanek
On Nov 21, 2009, at 4:12 PM, Guillaume Yziquel wrote: Hello. I've been looking at vecsexps for my binding. Concerning strings, I'm wondering: are they supposed to be null- delimited? Yes, they are null-delimited when you create/access them. Are they delimited by the info in the SEXPHEADE

[Rd] R strings, null-terminated or size delimited?

2009-11-21 Thread Guillaume Yziquel
Hello. I've been looking at vecsexps for my binding. Concerning strings, I'm wondering: are they supposed to be null-delimited? Are they delimited by the info in the SEXPHEADER macro in Rinternals.h? Basically, what are the macros or functions to access the values of the vecsexps? I'm think

Re: [Rd] Suggestion for the reproducibility of R home page figure

2009-11-21 Thread Friedrich Leisch
Thanks a lot, fixed. Best, Fritz > On Fri, 20 Nov 2009 19:53:31 +0100, > Jean lobry (Jl) wrote: > Dear R-devel, > googling for the single letter R yields R-home page as the firt hit, > which is extremly nice. > By clicking on the figure you get the code of the "Winner of the R