[Rd] R_ext manual: type cast in C function registra tion

2010-01-07 Thread Simon Anders
Hi, the Writing R extensions manual currently advises to register a .Call function as follows: R_CallMethodDef callMethods[] = { {myCall, myCall, 3}, {NULL, NULL, 0} }; This produces a compiler warning, at least on my GCC, because the second slot in the R_CallMethodDef is

[Rd] chooseCRANmirror() (PR#14179)

2010-01-07 Thread chrishold
Full_Name: Chris Evans Version: 2.10.1 OS: Windows XP sp3 Submission from: (NULL) (86.159.235.204) I was on leave and using a wifi internet connection in France and got connected, launched R (2.10.1 on Windoze XPsp3) and tried to update my packages and got: chooseCRANmirror() Error in m[, 1L]

Re: [Rd] chooseCRANmirror() (PR#14179)

2010-01-07 Thread Prof Brian Ripley
Hmm, have you read getCRANmirrors? It works gracefully if the connection is down, and has been tested quite a lot It seems you got a corrupt read from the URL: that's not reproducible and the place to deal with that is getCRANmirrors. Please do use an informative subject line: it makes

Re: [Rd] Creating RPMs for Packages

2010-01-07 Thread nashjc
This may get delayed as I am away from my usual mail system. Since (thanks to Dirk and Charles) there is the cran2deb project giving us most R packages in debian package format, could the alien package help? See http://www.linuxdocs.org/HOWTOs/RPM-for-Unix-HOWTO-8.html John Nash

[Rd] Segfault in GetNewPage, memory.c.

2010-01-07 Thread Guillaume Yziquel
Hello. I'm still working on my OCaml-R binding and I get a segfault in the GetNewPage() function of memory.c. For the record, the OCaml-R binding seems to work fine with OCaml bytecode. The segfault here is the main issue I have with OCaml native code. OCaml-R can be found on the following

Re: [Rd] Human-style sort() of alphanum strings?

2010-01-07 Thread Henrik Bengtsson
Follow up/bug: mixedsort() gets confused when there are periods in the string(s); print(gtools::mixedsort(a)) [1] a print(gtools::mixedsort(a.)) [1] a. NA print(gtools::mixedsort(a.b)) [1] a.b NANA print(gtools::mixedsort(a.b.)) [1] a.b. NA NA NA

Re: [Rd] Human-style sort() of alphanum strings?

2010-01-07 Thread Gabor Grothendieck
I had suggested two possibilities, not just mixedsort. The other was mixsort: mixsort(a.b.c) [1] a.b.c print(mixsort(a)) [1] a print(mixsort(a.)) [1] a. print(mixsort(a.b)) [1] a.b print(mixsort(a.b.)) [1] a.b. print(mixsort(a.b.c)) [1] a.b.c print(mixsort(a.b.c.)) [1] a.b.c. On Thu,

Re: [Rd] Human-style sort() of alphanum strings?

2010-01-07 Thread Henrik Bengtsson
Thanks, and sorry - I missed those two missing letter ed and though you only refer to that URL for extra example code. mixsort() does it for me. /H On Thu, Jan 7, 2010 at 3:50 PM, Henrik Bengtsson h...@stat.berkeley.edu wrote: Follow up/bug: mixedsort() gets confused when there are periods