[Rd] trivial typo in ?AIC

2007-09-11 Thread Ben Bolker
 "if more than one object are provided, "

 could be

"if more than one object is provided"

or

"if multiple objects are provided"

  cheers
Ben Bolker

 > sessionInfo()
R version 2.5.1 (2007-06-27)
i486-pc-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] "stats" "graphics"  "grDevices" "utils" "datasets"  "methods" 
[7] "base"

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] trivial typo in ?AIC

2007-09-11 Thread Duncan Murdoch
On 9/11/2007 7:58 AM, Ben Bolker wrote:
>  "if more than one object are provided, "
> 
>  could be
> 
> "if more than one object is provided"
> 
> or
> 
> "if multiple objects are provided"

Fixed, thanks.

Duncan Murdoch

> 
>   cheers
> Ben Bolker
> 
>  > sessionInfo()
> R version 2.5.1 (2007-06-27)
> i486-pc-linux-gnu
> 
> locale:
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
> 
> attached base packages:
> [1] "stats" "graphics"  "grDevices" "utils" "datasets"  "methods" 
> [7] "base"
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] typo in ?kernel

2007-09-11 Thread Simone Giannerini
in the example section (line -2 from the bottom)

Brockwell and Davies

should be

Brockwell and Davis


Regards,

Simone
__

Simone Giannerini
Dipartimento di Scienze Statistiche "Paolo Fortunati"
Universita' di Bologna
Via delle belle arti 41 - 40126  Bologna,  ITALY
Tel: +39 051 2098262  Fax: +39 051 232153
__

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in ?kernel

2007-09-11 Thread Duncan Murdoch
On 9/11/2007 8:35 AM, Simone Giannerini wrote:
 > in the example section (line -2 from the bottom)
 >
 > Brockwell and Davies
 >
 > should be
 >
 > Brockwell and Davis

Fixed, thanks.  (It also shows up in the Details section.)

Duncan Murdoch

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] partial correlation function for multivariate time series

2007-09-11 Thread Paul Gilbert
I think the reference for pacf is

@BOOK{GraNew77,
   author ={Granger, C. W. J. and Newbold, Paul},
   title = {Forecasting Economic Time Series},
   publisher = {Academic Press},
   year =  1977
   }

It certainly would not be Reisel's book, as parts of the code predate 
that by many years.

Paul Gilbert

Simone Giannerini wrote:
> Dear all,
> 
> I found the following behaviour with pacf() in the multivariate case,
> 
> set.seed(10)
> x <- rnorm(1000,sd=1)
> y <- rnorm(1000,sd=1)
> pacf(ts(cbind(x,y)),plot=FALSE,lag.max=10)
> 
> Partial autocorrelations of series 'cbind(x, y)', by lag
> 
> , , x
> 
>  x  y
> 0.047 (  1)0.000 ( -1)
> 0.011 (  2)0.000 ( -2)
> 0.005 (  3)0.000 ( -3)
> 0.013 (  4)0.000 ( -4)
> 0.050 (  5)0.000 ( -5)
> 0.034 (  6)0.000 ( -6)
> 0.026 (  7)0.000 ( -7)
>-0.029 (  8)0.000 ( -8)
>-0.010 (  9)0.000 ( -9)
>-0.013 ( 10)0.000 (-10)
> 
> , , y
> 
>  x  y
>   374.052 (  1)   -0.045 (  1)
>66.717 (  2)   -0.024 (  2)
>  -535.810 (  3)   -0.031 (  3)
>   120.802 (  4)   -0.020 (  4)
>   142.824 (  5)0.004 (  5)
>  -211.711 (  6)   -0.010 (  6)
>   201.856 (  7)0.058 (  7)
>   286.079 (  8)   -0.035 (  8)
>  -134.057 (  9)0.032 (  9)
>   -18.200 ( 10)0.019 ( 10)
> 
> Since there are multiple ways of defining the pacf for multivariate time
> series
> (see e.g. G.C. Reinsel, Elements of multivariate time series analysis, II
> edition, Springer, section 3.3) and given that
> in ?pacf there is no reference to articles or books regarding its
> computation
> I do not know whether this behaviour is expected or it is a bug instead.
> In the first case could you provide a reference for it? In the second case I
> might file a bug report.
> Thank you for the great work you are doing for the scientific community.
> 
> kind regards,
> 
> Simone Giannerini
> 
> WINDOWS
> 
> platform   i386-pc-mingw32
> arch   i386
> os mingw32
> system i386, mingw32
> status
> major  2
> minor  5.1
> year   2007
> month  06
> day27
> svn rev42083
> language   R
> version.string R version 2.5.1 (2007-06-27)
> 
> LINUX
> 
> 
>>R.Version()
> 
> $platform
> [1] "x86_64-unknown-linux-gnu"
> 
> $arch
> [1] "x86_64"
> 
> $os
> [1] "linux-gnu"
> 
> $system
> [1] "x86_64, linux-gnu"
> 
> $status
> [1] ""
> 
> $major
> [1] "2"
> 
> $minor
> [1] "5.1"
> 
> $year
> [1] "2007"
> 
> $month
> [1] "06"
> 
> $day
> [1] "27"
> 
> $`svn rev`
> [1] "42083"
> 
> $language
> [1] "R"
> 
> $version.string
> [1] "R version 2.5.1 (2007-06-27)"


La version française suit le texte anglais.



This email may contain privileged and/or confidential inform...{{dropped}}

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] gcc-sjlj

2007-09-11 Thread Kuhn, Max
Everyone,

I'm running R CMD check on a package using the 2.6.0 alpha version:

> sessionInfo()
R version 2.6.0 alpha (2007-09-09 r42809) 
i386-pc-mingw32 

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base   

The check is failing with this error:

* checking whether package 'caret' can be installed ... ERROR
Installation failed.

Specifically:

  making DLL ...
making caret.d from caret.c
make[3]: gcc-sjlj: Command not found
make[3]: [caret.d] Error 127 (ignored)
cat: caret.d: No such file or directory
make[3]: [makeMakedeps] Error 1 (ignored)
gcc-sjlj  -std=gnu99  -Ic:/PROGRA~1/R/R260AL~1/include-Wall -O3  -c
caret.c -o caret.o
make[3]: gcc-sjlj: Command not found
make[3]: *** [caret.o] Error 127
make[2]: *** [srcDynlib] Error 2
make[1]: *** [all] Error 2
make: *** [pkg-caret] Error 2

Is there a new gcc version that I need to get or was a space omitted in
the gcc command? (This uses gcc version 3.4.5 (mingw special)). I
checked the release notes and the "Building R for Windows" site and I
didn't see any mention of version changes. I've been able to run RCMD
check with previous versions on the same package without error.

Thanks,

Max

--
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] gcc-sjlj

2007-09-11 Thread Uwe Ligges
gcc-4.2.1 is the default now.

Uwe Ligges



Kuhn, Max wrote:
> Everyone,
> 
> I'm running R CMD check on a package using the 2.6.0 alpha version:
> 
>> sessionInfo()
> R version 2.6.0 alpha (2007-09-09 r42809) 
> i386-pc-mingw32 
> 
> locale:
> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
> States.1252;LC_MONETARY=English_United
> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
> 
> attached base packages:
> [1] stats graphics  grDevices utils datasets  methods   base   
> 
> The check is failing with this error:
> 
> * checking whether package 'caret' can be installed ... ERROR
> Installation failed.
> 
> Specifically:
> 
>   making DLL ...
> making caret.d from caret.c
> make[3]: gcc-sjlj: Command not found
> make[3]: [caret.d] Error 127 (ignored)
> cat: caret.d: No such file or directory
> make[3]: [makeMakedeps] Error 1 (ignored)
> gcc-sjlj  -std=gnu99  -Ic:/PROGRA~1/R/R260AL~1/include-Wall -O3  -c
> caret.c -o caret.o
> make[3]: gcc-sjlj: Command not found
> make[3]: *** [caret.o] Error 127
> make[2]: *** [srcDynlib] Error 2
> make[1]: *** [all] Error 2
> make: *** [pkg-caret] Error 2
> 
> Is there a new gcc version that I need to get or was a space omitted in
> the gcc command? (This uses gcc version 3.4.5 (mingw special)). I
> checked the release notes and the "Building R for Windows" site and I
> didn't see any mention of version changes. I've been able to run RCMD
> check with previous versions on the same package without error.
> 
> Thanks,
> 
> Max
> 
> --
> LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] gcc-sjlj

2007-09-11 Thread Duncan Murdoch
On 11/09/2007 1:24 PM, Kuhn, Max wrote:
> Everyone,
> 
> I'm running R CMD check on a package using the 2.6.0 alpha version:
> 
>> sessionInfo()
> R version 2.6.0 alpha (2007-09-09 r42809) 
> i386-pc-mingw32 
> 
> locale:
> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
> States.1252;LC_MONETARY=English_United
> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
> 
> attached base packages:
> [1] stats graphics  grDevices utils datasets  methods   base   
> 
> The check is failing with this error:
> 
> * checking whether package 'caret' can be installed ... ERROR
> Installation failed.
> 
> Specifically:
> 
>   making DLL ...
> making caret.d from caret.c
> make[3]: gcc-sjlj: Command not found
> make[3]: [caret.d] Error 127 (ignored)
> cat: caret.d: No such file or directory
> make[3]: [makeMakedeps] Error 1 (ignored)
> gcc-sjlj  -std=gnu99  -Ic:/PROGRA~1/R/R260AL~1/include-Wall -O3  -c
> caret.c -o caret.o
> make[3]: gcc-sjlj: Command not found
> make[3]: *** [caret.o] Error 127
> make[2]: *** [srcDynlib] Error 2
> make[1]: *** [all] Error 2
> make: *** [pkg-caret] Error 2
> 
> Is there a new gcc version that I need to get or was a space omitted in
> the gcc command? (This uses gcc version 3.4.5 (mingw special)). I
> checked the release notes and the "Building R for Windows" site and I
> didn't see any mention of version changes. I've been able to run RCMD
> check with previous versions on the same package without error.

gcc 4 is the new default, specifically the MinGW "setjmp/longjmp" build, 
gcc-sjlj.  If you want to use the old 3.4.5, you need to edit MkRules, 
setting BUILD=GCC3.

For now, the Windows toolset I put together 
(www.murdoch-sutherland.com/Rtools) includes both versions, so you might 
want to download a new copy rather than continuing to use the old one; 
sometime after the release of 2.6.0 I'll drop 3.4.5 from the tools.

Duncan Murdoch

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] gcc-sjlj

2007-09-11 Thread Kuhn, Max
Duncan,

> gcc 4 is the new default, specifically the MinGW "setjmp/longjmp"
build, 
> gcc-sjlj.  If you want to use the old 3.4.5, you need to edit MkRules,

> setting BUILD=GCC3.

Thanks for the suggestion. With my C skills, that would be like giving a
monkey a gun. Nothing good could come of it.

> For now, the Windows toolset I put together 
> (www.murdoch-sutherland.com/Rtools) includes both versions, so you
might 
> want to download a new copy rather than continuing to use the old one;

> sometime after the release of 2.6.0 I'll drop 3.4.5 from the tools.

Sorry, I originally looked there and missed the link. I used it and
everything worked fine. It is a great improvement compared to hunting
down the various files. I'm up and running now with no issues.

Max

--
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] "could not find function" in R CMD check

2007-09-11 Thread Ross Boylan
During R CMD check I get this:
** building package indices ...
Error in eval(expr, envir, enclos) : could not find function
"readingError"
Execution halted
ERROR: installing package indices failed

The check aborts there.  readingError is a function I just added; for
reference
setClass("readingError", contains="matrix")
readingError <- function(...) new("readingError", matrix(...))
which is in readingError.R in the project's R subdirectory.

Some code in the data directory invokes readingError, and the .Rd file
includes \alias{readingError}, \alias{readingError-class},
\name{readingError-class} and an example invoking readingError.

I'm using R 2.5.1 as packaged for Debian GNU/Linux.

Does anyone have an idea what's going wrong here, or how to fix or debug
it?

The code seems to work OK when I use it from ESS.
-- 
Ross Boylan  wk:  (415) 514-8146
185 Berry St #5700   [EMAIL PROTECTED]
Dept of Epidemiology and Biostatistics   fax: (415) 514-8150
University of California, San Francisco
San Francisco, CA 94107-1739 hm:  (415) 550-1062

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel