Skip to content
Prev 310666 / 398506 Next

Matrix package will not loead

Many thanks for your advice and assistance. 

Sadly, I am unable to install "from source" as my operating environment does not have Rtools or a compiler.

Is there an old version compiled somewhere I can use ?
Installing package(s) into 'H:/R/win-library/2.15'
(as 'lib' is unspecified)
* installing *source* package 'Matrix' ...
** package 'Matrix' successfully unpacked and MD5 sums checked
** libs
ERROR: compilation failed for package 'Matrix'
* removing 'H:/R/win-library/2.15/Matrix'
Warning messages:
1: running command 'C:/PROGRA~1/R/R-215~1.1/bin/i386/R CMD INSTALL -l "H:/R/win-library/2.15"   "H:/Downloads/Matrix_1.0-10.tar.gz"' had status 1 
2: In install.packages("H:\\Downloads\\Matrix_1.0-10.tar.gz", repos = NULL,  :
  installation of package 'H:/Downloads/Matrix_1.0-10.tar.gz' had non-zero exit status
Installing package(s) into 'H:/R/win-library/2.15'
(as 'lib' is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://cran.ma.imperial.ac.uk/src/contrib/Matrix_1.0-9.tar.gz'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'http://cran.ma.imperial.ac.uk/src/contrib/Matrix_1.0-9.tar.gz'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
  cannot open: HTTP status was '404 Not Found'
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  

-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
Sent: 13 November 2012 13:03
To: Duncan Murdoch
Cc: Uzuner, Tolga I; r-help at r-project.org
Subject: Re: [R] Matrix package will not loead

You will find the problem and solution in the list archives.

The current version of Matrix can be installed *from source* on R (>= 
2.15.0), as it claims.  But if you install it on R >= 2.15.2 then it 
uses features of 2.15.2 and hence can only be run on R >= 2.15.2. And 
there was a warning about this ....
On 13/11/2012 12:38, Duncan Murdoch wrote:
The issue is if it is exported from R.dll, which only happened just 
before 2.15.2.  Works for me with the Matrix binary package on the CRAN 
master and both 2.15.2 and the current R-patched (which in any case 
contains that version).