Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-15 Thread Duncan Murdoch
On 13/11/2009 7:39 AM, Gabor Grothendieck wrote: Its also difficult to know about demos unless you specifically issue a demo(package = "mypackage") command. It would be nice if these were listed too. This is in R-devel now. Note that the NEWS and/or ChangeLog file are listed on the package's

Re: [Rd] Segmentation faults on SEXP conversion 20)

2009-11-15 Thread nabble . 30 . miller_2555
On Sun, Nov 15, 2009 at 9:16 PM, Duncan Murdoch - murd...@stats.uwo.ca <+nabble+miller_2555+1412c7fca2.murdoch#stats.uwo...@spamgourmet.com> wrote: > > Sorry, I missed something else that's obvious:  .Call needs a return value. >  The c function needs to include Rinternals.h, and the function needs

Re: [Rd] Segmentation faults on SEXP conversion

2009-11-15 Thread nabble . 30 . miller_2555
On 15/11/2009 8:25 PM, nabble.30.miller_2...@spamgourmet.com wrote: On Sun, Nov 15, 2009 at 2:52 PM, Duncan Murdoch - nabble.30.miller_2...@spamgourmet.com <> wrote: On 15/11/2009 1:41 PM, nabble.30.miller_2...@spamgourmet.com wrote: The "character" type in R corresponds to STRSXP in C, which i

Re: [Rd] Segmentation faults on SEXP conversion 20)

2009-11-15 Thread nabble . 30 . miller_2555
On Sun, Nov 15, 2009 at 8:30 PM, Duncan Murdoch - murd...@stats.uwo.ca <+nabble+miller_2555+1412c7fca2.murdoch#stats.uwo...@spamgourmet.com> wrote: > On 15/11/2009 8:25 PM, nabble.30.miller_2...@spamgourmet.com wrote: >> ptest.c: >> --- >> #include >

Re: [Rd] Segmentation faults on SEXP conversion

2009-11-15 Thread nabble . 30 . miller_2555
On 15/11/2009 8:25 PM, nabble.30.miller_2...@spamgourmet.com wrote: On Sun, Nov 15, 2009 at 2:52 PM, Duncan Murdoch - nabble.30.miller_2...@spamgourmet.com <> wrote: On 15/11/2009 1:41 PM, nabble.30.miller_2...@spamgourmet.com wrote: The "character" type in R corresponds to STRSXP in C, which i

Re: [Rd] Segmentation faults on SEXP conversion

2009-11-15 Thread Duncan Temple Lang
nabble.30.miller_2...@spamgourmet.com wrote: > On Sun, Nov 15, 2009 at 2:52 PM, Duncan Murdoch - murd...@stats.uwo.ca > <+nabble+miller_2555+1412c7fca2.murdoch#stats.uwo...@spamgourmet.com> > wrote: >> On 15/11/2009 1:41 PM, nabble.30.miller_2...@spamgourmet.com wrote: >> The "character" type in

Re: [Rd] Segmentation faults on SEXP conversion

2009-11-15 Thread nabble . 30 . miller_2555
On Sun, Nov 15, 2009 at 2:52 PM, Duncan Murdoch - murd...@stats.uwo.ca <+nabble+miller_2555+1412c7fca2.murdoch#stats.uwo...@spamgourmet.com> wrote: > On 15/11/2009 1:41 PM, nabble.30.miller_2...@spamgourmet.com wrote: >> > The "character" type in R corresponds to STRSXP in C, which is a vector of >

[Rd] OCaml-R and xts works!

2009-11-15 Thread Guillaume Yziquel
Hi. I've managed to make a *very* simple wrapper around the xts library for R into OCaml. (Need to be downloaded from CRAN for OCaml users, but I expect other wrapping to be fairly similar...). The good, good, good thing (from my humble point of view) is that all loading is done statically: L

Re: [Rd] file.rename overwrites existing target (PR#14065)

2009-11-15 Thread Jens Oehlschlägel
Thanks, An overwrite flag would be great. Would make it cristal clear what the expected behaviour is. Agree that unix behaviour should in case of doubt have priority - in this case: documentation would help windows users. Regards Jens __ R-devel@r-

Re: [Rd] Problem building package for R 2.10.0 on Mac OS X

2009-11-15 Thread Prof Brian Ripley
Please ask such questions on R-sig-mac, or directly to the Mac package builder (Simon Urbanek). As you will see from http://cran.r-project.org/web/checks/check_summary.html at least 150 packages are in the same boat (not building because dependencies are missing), so something has gone wrong

Re: [Rd] Segmentation faults on SEXP conversion

2009-11-15 Thread Duncan Murdoch
On 15/11/2009 1:41 PM, nabble.30.miller_2...@spamgourmet.com wrote: Hello - I am making a first attempt at writing a simple C++ routine to print out R objects (this is a simple proof-of-concept as part of a larger package development). The relevant C++ routine is as follows: void Rwrite(SEXP fd

Re: [Rd] (PR#13999) Extreme values of non-central chisq (was Accuracy)

2009-11-15 Thread Prof Brian Ripley
You crossed the value ncp = 80: the help page warned you of cancellation there, and at p = 1 - 1e-12, that is what you got (badly). On Sun, 11 Oct 2009, witkov...@savba.sk wrote: Full_Name: Viktor Witkovsky Version: 2.9.2 OS: Windows XP Submission from: (NULL) (78.98.89.227) Hello, I have

[Rd] Segmentation faults on SEXP conversion

2009-11-15 Thread nabble . 30 . miller_2555
Hello - I am making a first attempt at writing a simple C++ routine to print out R objects (this is a simple proof-of-concept as part of a larger package development). The relevant C++ routine is as follows: void Rwrite(SEXP fd, SEXP msg) { int *ofd = INTEGER(fd); const char * omsg = CHAR(asC

[Rd] Problem building package for R 2.10.0 on Mac OS X

2009-11-15 Thread Stephen Juggins
Hi I have submitted a package (rioja) to CRAN. It checks OK for all R versions and OS's except r-release-macosx-ix86 where it fails when checking the examples. Specifically, it fails because R can't find the package vegan which is needed in a function. Here is the snippet from the check result

Re: [Rd] Fwd: AR(2) modelling

2009-11-15 Thread Christophe Dutang
Thanks Gabor, My mistake was I used the 'cor' function rather than the function 'acf' with "correlation" argument. Christophe Le 15 nov. 2009 à 18:13, Gabor Grothendieck a écrit : Try this: debug(stats:::ar.yw.default) and then run the ar function to step through the ar code so you can s

Re: [Rd] Fwd: AR(2) modelling

2009-11-15 Thread Gabor Grothendieck
Try this: debug(stats:::ar.yw.default) and then run the ar function to step through the ar code so you can see the results line by line and understand what it is doing at a very detailed level. On Sun, Nov 15, 2009 at 10:06 AM, Christophe Dutang wrote: > As you are sure of the accuracy of your

Re: [Rd] Fwd: AR(2) modelling

2009-11-15 Thread Prof Brian Ripley
On Sun, 15 Nov 2009, Christophe Dutang wrote: As you are sure of the accuracy of your code, why don't you tell me where is my mistake? Because your supervisor is paid to do that. Le 15 nov. 2009 à 12:03, Prof Brian Ripley a écrit : -- Brian D. Ripley, rip...@stats.ox.ac.

Re: [Rd] file.rename overwrites existing target (PR#14065)

2009-11-15 Thread Gabor Grothendieck
On Sun, Nov 15, 2009 at 9:58 AM, Jari Oksanen wrote: > On 15/11/09 16:35 PM, "jo...@web.de" wrote: > >> Full_Name: Jens Oehlschlägel >> Version: 2.10.0 >> OS: Windows XP Professional >> Submission from: (NULL) (85.181.158.112) >> >> >> file.rename() will successfully rename file a to b - even if

Re: [Rd] Fwd: AR(2) modelling

2009-11-15 Thread Christophe Dutang
As you are sure of the accuracy of your code, why don't you tell me where is my mistake? Le 15 nov. 2009 à 12:03, Prof Brian Ripley a écrit : -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford,

Re: [Rd] file.rename overwrites existing target (PR#14065)

2009-11-15 Thread Jari Oksanen
On 15/11/09 16:35 PM, "jo...@web.de" wrote: > Full_Name: Jens Oehlschlägel > Version: 2.10.0 > OS: Windows XP Professional > Submission from: (NULL) (85.181.158.112) > > > file.rename() will successfully rename file a to b - even if b exists already. > Though the documentation does not state wh

[Rd] file.rename overwrites existing target (PR#14065)

2009-11-15 Thread joehl
Full_Name: Jens Oehlschlägel Version: 2.10.0 OS: Windows XP Professional Submission from: (NULL) (85.181.158.112) file.rename() will successfully rename file a to b - even if b exists already. Though the documentation does not state what file.rename() will do in this case, I guess the expected b

Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-15 Thread Duncan Murdoch
On 13/11/2009 3:37 AM, Henrik Bengtsson wrote: Hi, right now it is actually a bit tricky to locate and view the NEWS and the CHANGES files, especially if you are a beginning and don't even know that you are supposed to look for them. I'd like to recommend that links to (local) NEWS and CHANGES

[Rd] Fwd: AR(2) modelling

2009-11-15 Thread Christophe Dutang
My email does not seem to receive any attention on R-help, so I forward it on R-devel if someone has already faced the "problem". Thanks in advance Christophe Début du message réexpédié : > De : Christophe Dutang > Date : 13 novembre 2009 23:30:14 HNEC > À : r-h...@r-project.org > Objet : AR