[Rd] bug in princomp example (PR#14167)
Peter Ehlers
ehlers at ucalgary.ca
Fri Dec 25 01:17:56 CET 2009
twoutopias at gmail.com wrote:
> When I run
>
> example(princomp)
>
> I get the following error message:
>
> prncmp> ## The variances of the variables in the
> prncmp> ## USArrests data vary by orders of magnitude, so scaling is
> appropriate
> prncmp> (pc.cr <- princomp(USArrests)) # inappropriate
> Error in cov.wt(z) : 'x' must contain finite values only
try rm(x) before you run the example; I think you might
have an 'x' hanging around in your workspace.
I had no trouble with the example run in a clean workspace.
> sessionInfo()
R version 2.10.1 Patched (2009-12-21 r50796)
i386-pc-mingw32
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252
[3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] fortunes_1.3-6
loaded via a namespace (and not attached):
[1] tools_2.10.1
>
-Peter Ehlers
>
> Seth Roberts
>
>
>
--
Peter Ehlers
University of Calgary
403.202.3921
More information about the R-devel
mailing list