[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 duta...@gmail.com Date : 13 novembre 2009 23:30:14 HNEC À : r-h...@r-project.org

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] 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

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 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

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

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 jari.oksa...@oulu.fi wrote: On 15/11/09 16:35 PM, jo...@web.de 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

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 duta...@gmail.com wrote: As you are sure of the

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

[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 =

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

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] 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 __

[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:

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 R

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 is a

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

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 R.h void

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 is a

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 to

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