[R] sparseM and kronecker product_R latest version

Roger Koenker rkoenker at uiuc.edu
Mon Jan 11 16:02:00 CET 2010


I can't reproduce this on my mac:

>   sessionInfo()
R version 2.10.1 (2009-12-14) 
x86_64-apple-darwin9.8.0 

locale:
[1] C

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

other attached packages:
[1] fortunes_1.3-7 quantreg_4.44  SparseM_0.83  

loaded via a namespace (and not attached):
[1] tools_2.10.1

url:    www.econ.uiuc.edu/~roger            Roger Koenker
email    rkoenker at uiuc.edu            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Urbana, IL 61801

On Jan 11, 2010, at 8:00 AM, David Winsemius wrote:

> 
> On Jan 11, 2010, at 7:55 AM, Peter Ehlers wrote:
> 
>> Do you have the same problem with the example
>> on the help page?
>> 
>> ?'%x%-methods'
>> 
>> Works for me on Windows Vista (32-bit OS) and
>> R version 2.10.1 Patched (2010-01-05 r50896).
>> 
>> -Peter Ehlers
>> 
>> alessia matano wrote:
>>> Dear all,
>>> I just installed the new version of R, 2.10.1, and I am currently
>>> using the package sparseM. (I also use a 64 bit windows version)
> 
> SparseM
> 
>>> I got a problem that I never had: when I try to multiply with a
>>> kronecker product (%x%) two sparse matrixes I get the following
>>> message:
>>> Error in dim(x) <- length(x) : invalid first argument
>>> I never had this problem with previous versions of R.
> 
> I get the same error as you do when trying the example on the cited help page using SparseM 0.83 in a 64 bit Mac version of 2.10.1
> 
> > A.csr %x% matrix(1:4,2,2)
> Error in dim(x) <- length(x) : invalid first argument
> 
> > sessionInfo()
> R version 2.10.1 RC (2009-12-09 r50695)
> x86_64-apple-darwin9.8.0
> 
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
> 
> attached base packages:
> [1] grid      splines   stats     graphics  grDevices utils     datasets  methods   base
> 
> other attached packages:
> [1] SparseM_0.83       Matrix_0.999375-32 Epi_1.1.10         plotrix_2.7-2      ROCR_1.0-4
> [6] gplots_2.7.4       caTools_1.10       bitops_1.0-4.1     gdata_2.6.1        gtools_2.6.1
> [11] lattice_0.17-26    Design_2.3-0       Hmisc_3.7-0        survival_2.35-7
> 
> loaded via a namespace (and not attached):
> [1] cluster_1.12.1 tools_2.10.1
> 
> 
> 
>>> May you help me?
>>> thanks
>>> alessia
>>> ______________________________________________
>> -- 
>> Peter Ehlers
>> University of Calgary
>> 403.202.3921
>> 
>> ______________________________________________
> 
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT



More information about the R-help mailing list